DanielArnould / react-pdf-highlighter-extended

📄 Set of modern React components for PDF highlighting
https://danielarnould.github.io/react-pdf-highlighter-extended/example-app/
MIT License
43 stars 16 forks source link

Bug: Chrome/Edge document loading but not showing #22

Open AndTmf opened 1 month ago

AndTmf commented 1 month ago

Hello, I have tested everything with Firefox so far and it works without any problems.

After testing with Edge and Chrome, there is often the problem that the PDF is loaded to 100% but then not displayed. Like on the screenshot. After several reloads of the page it works eventually. There are no messages in the console.

I will provide more information when I have found out where it comes from.

grafik

DanielArnould commented 1 month ago

Hey, Would you be able to share the PDF document? Either way, try loading it with the PDF.js demo viewer to see if it's an issue with this library.

AndTmf commented 1 month ago

Thanks for the idea with the pdf.js demo!

I did some tests and the pdf.js demo as well as the example implementation have no problems with Chromium. Maybe it is a Next.js problem. Definitely a problem in my implementation on my side. Not a general bug, was a bit hasty.