Detailed description of issue
I get this error while selecting the custom rectangle tool. I am using this as an redaction alternative by using the rectangle tool and filling it with black color and the redaction takes place using the PDFViewer API in the backend.
I cannot reproduce your issue. You can provide the code you are using to load PDF.js Express. It sounds like there is a file that is missing and cannot be loaded. You could also check the console for any 404s.
I checkded the console there are no 404s,
Heres’ the code I use to load PDF.Js Express,
this.webViewerInstance = WebViewer(
{
path: “…/lib/public”,
//initialDoc: “…/files/webviewer-demo-annotated.pdf”,
config: “…/assets/myConfig.js”,
},
this.viewer.nativeElement
);
Here’s the folder structure for lib folder
Would you be able to create a minimal example project where you can reproduce the error and send it to me? You could even just zip up your current project and send it.
Just following up on this issue. We were finally able to reproduce the issue and found that it is caused by calling loadDocument in rapid succession. This will be fixed in a future patch, but for now please make sure you aren’t calling loadDocument more than intended.