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;