Skip to content

Promote to production: extract PDF images cross-browser fix - #217

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Aug 14, 2026
Merged

Promote to production: extract PDF images cross-browser fix#217
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Promotes the fix so Extract Images from PDF works across browsers (pdf.js legacy build + correct ImageBitmap sizing).

- Use pdf.js legacy build (polyfills Uint8Array.toHex etc.) so extraction
  no longer crashes on browsers without the newest JS.
- Draw the decoded image using its own width/height (pdf.js stores the
  bitmap dimensions there, not on the bitmap), so ImageBitmap objects now
  encode correctly instead of producing a 0-size canvas.

Verified end-to-end in a headless browser: a sample PDF now yields all its
embedded images instead of 'no images found'.
fix(pdf): reliably extract PDF images across browsers
@slaveofcode
slaveofcode merged commit 0a1b3dd into main Aug 14, 2026
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant