fix(deps): resolve pdfjs-dist version mismatch breaking OCR fallback#17
Merged
willgriffin merged 1 commit intomainfrom Dec 13, 2025
Merged
fix(deps): resolve pdfjs-dist version mismatch breaking OCR fallback#17willgriffin merged 1 commit intomainfrom
willgriffin merged 1 commit intomainfrom
Conversation
The API version from pdf-to-png-converter (5.4.449) did not match the worker version bundled in unpdf (5.4.296), causing OCR fallback to fail for scanned PDFs. Changes: - Pin pdfjs-dist to 5.4.296 via pnpm override to match unpdf bundle - Downgrade pdf-to-png-converter to ^3.10.0 (compatible with 5.4.296) - Fix tests to actually assert OCR extracts meaningful text - Group PDF deps in Renovate and require approval for updates Closes #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the pdfjs-dist version mismatch that broke OCR fallback for scanned PDFs.
pdf-to-png-converterused pdfjs-dist 5.4.449, butunpdfbundles 5.4.296 internally, causing version conflict errorsChanges
pdfjs-distto5.4.296via pnpm overridepdf-to-png-converterto^3.10.0(compatible with 5.4.296)Test plan
pnpm testpasses locally (41 tests)Closes #16