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 #1017 #1018

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Fix #1017 #1018

merged 1 commit into from
Mar 26, 2025

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.

Verified

This commit was signed with the committer’s verified signature.
ruflin Nicolas Ruflin
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