PDF not showing up and being replaced with Loading Modal

Which product are you using?

PDF Express plus (free version)

PDF.js Express Version

Detailed description of issue
PDF is not showing up in webviewer and is instead being replaced by a loading modal

My PDf files are being fetched correctly with no network error (i’m able to render this pdf in an isolated testing app so it’s not the pdf itself)

Expected behaviour
Render PDF with correct tools from PDF express plus

Does your issue happen with every document, or just one?
Every document (local in public folder), and every hosted pdf link

Link to document
{Provide a link to the document in question if possible}

Code snippet

import { useRef, useEffect } from "react";
import WebViewer from "@pdftron/pdfjs-express";

const DocumentViewer = () => {
  const viewer = useRef(null);

  useEffect(() => {
    WebViewer(
      {
        path: process.env.PUBLIC_URL + "/pdfjsexpress",
        initialDoc: process.env.PUBLIC_URL + "/pdfjsexpress/demo.pdf"
      },
      viewer.current,
    ).then((instance) => {
    });
  }, []);

  return (
    <div className="">
        <div className="header">React sample</div>
        <div className="webviewer" ref={viewer}></div>
    </div>
  );
};

export default DocumentViewer;

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

resolved, no actions need at this time

1 Like