Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error with empty black bages for reports like "Eolus Vind" #339

Closed
Greenheart opened this issue Nov 28, 2024 · 0 comments
Closed

Fix error with empty black bages for reports like "Eolus Vind" #339

Greenheart opened this issue Nov 28, 2024 · 0 comments

Comments

@Greenheart
Copy link
Collaborator

Greenheart commented Nov 28, 2024

Is this caused by https://github.com/k-yle/pdf-to-img or something else? It seems like pdf-to-img uses https://github.com/mozilla/pdfjs-dist which uses an old 3.x release of pdfjs, while the latest version of pdfjs is 4.x. This might be possible to fix. It seems like they can't upgrade pdfjs because of the breaking changes and migrating from commonjs to ESM. Perhaps we could make a fork of the library which creates separate ESM and commonjs builds? k-yle/pdf-to-img#234

Could we render and parse the PDF in a different way? For example Google vision API based on an input PDF?

Alternatively, we could use:
https://www.npmjs.com/package/pdf2pic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant