Please give a brief summary of your issue:
(Think of this as an email subject)
PDFNetCWasm.br.wasm files are getting loaded twice, which increases resource download size(2.4 MB)
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible:
Thanks for sharing that screenshot. It’s possible the configuration of WebViewer is causing the WASM file to be loaded twice. Please share with us sample code of your project - specifically how you initialize WebViewer and any other setup code afterwards. Then we can investigate further on our side.
HI Adam,
I am trying it with NextJS framework. Attaching here the pages folder. Inside that pdfviewer.tsx is the component where I integrated PDFtron. (Not uploading the full project because of size constarints).
I get Error: Two instances of WebViewer were created on the same HTML element. Please create a new element for each instance of WebViewer.
Could you please look into this as well?[quote=“p.kk, post:1, topic:7559, full:true”]
Product: PDF Tron
Product Version:8.11.0
Please give a brief summary of your issue:
(Think of this as an email subject)
PDFNetCWasm.br.wasm files are getting loaded twice, which increases resource download size(2.4 MB)
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible:
[/quote]
Thanks for providing us some sample code and clarifying you’re using NextJS! We’ll have a look on our end and provide you with an update when we have more information.