Open Titorat opened 1 month ago
Also, try this one:
https://github.com/jkgenser/react-pdf-headless
It's MIT license completely free and open source. I re-wrote it from scratch on top of https://github.com/wojtekmaj/react-pdf and https://tanstack.com/virtual/latest in order to replace my own user of this project.
My use case involves lazily rendering large PDFs, scrubbing to particular pages or offsets within a page, showing bounding boxes or highlights overlaid on the pages and more!
If your use case involves more, please drop me a line and we can work together to getting that functionality added in!
This package is not that bad, I used it for more than a year in my product: https://ppresume.com/gallery, overall it did its job, though with some bugs.
However, the maintainence is a problem for sure, if the author could be more active, it would be good.
For anyone who has tried using this package, it's clear that it's not maintainable, full of vulnerabilities, and the author has abandoned it.
A great alternative I’ve found is Syncfusion (https://www.syncfusion.com/). They offer a PDF Viewer, including a React version. You can get a FREE community license if your company makes less than $1M a year and has 5 or fewer developers or 10 or fewer employees, which I think would suit a lot of people.
Their support is fantastic. I'm not affiliated with them btw, but after struggling with this package, I'm much happier using a more reliable option. While Syncfusions's documentation could be improved, I can usually solve most issues with a bit of research and ChatGPT.
React Component (https://ej2.syncfusion.com/react/documentation/pdfviewer/getting-started)