Skip to content

Conversation

@lofcz
Copy link
Contributor

@lofcz lofcz commented Mar 25, 2025

Fixes #1017 by allowing direct values while parsing xobjects. I've used https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=136 as a reference. In the case of the offending sample PDF, gstate.Value is a DictionaryToken, content: <ca, 1>.

@BobLd I'd be grateful for a review/correction.

fix test name
@BobLd
Copy link
Collaborator

BobLd commented Mar 26, 2025

@lofcz looks good to me - thx!

@BobLd BobLd merged commit ba8e1e1 into UglyToad:master Mar 26, 2025
1 check 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.

Exception thrown when coping pages from Weasyprint generated PDF

2 participants