What version of Express are you using? Could you send us a minimal sample project or some way to reproduce the issue? A video of the issue would also be helpful.
Thanks for response.
Hope your asking about “@pdftron/pdfjs-express-viewer”: “^8.7.4”.
We are not using express.js
Also not able to share screen recorder of issue for your reference due upload size limit 8MB. Any other way to share screen reorder zip of 75MB
Attached screensnap here. for your reference
From looking at your snapshots, I don’t see anything particularly wrong. Could you share your project by creating a repository on GitHub? For screen recording, you can use https://www.loom.com/ or upload it to Google Drive.
Could you elaborate how you are using PDF.js Express with the material UI? We also have sample projects you can use available here: PDF.js Express · GitHub
We would need someway to reproduce the issue on our end in order assist further.
Trying to open pdfviewer inside '@mui/material/DialogContent on click on button.
Issue is not able to construct WebViewer obj after getting valid current containerRef.
We did this in referred your GitHub sample projects and steps for react for viewer from your site.
Will be challenges to share our project in any repository.
Hope this details will help to identify issue.
Thank you for the video and response. At the 3:05, I noticed the viewer not opening the PDF. When you try and open the PDF, could you open your console as well and check for any errors? Please provide a screenshot.
It is difficult to pinpoint the problem without some sort of sample project. Could you host this environment and send a way to access it? If you hover over the webviewer div, do you see it anywhere on the page?
I was able to successfully run your project. I ran npm start to see it in development. As expected the viewer appeared without any issue when I clicked “CLICK TO OPEN AGREEMENT FILE” under billing. However, when I ran npm run build and started that project, I was still able to see the PDF as well.