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

Handle SetFlatness operator with no value and fix #682 #691

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

BobLd
Copy link
Collaborator

@BobLd BobLd commented Aug 27, 2023

fix #682

@BobLd BobLd requested a review from EliotJones August 27, 2023 10:07
@BobLd BobLd linked an issue Aug 27, 2023 that may be closed by this pull request
Copy link
Member

@EliotJones EliotJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long time no see, sorry for the radio silence, it's tough to find the motivation for me atm. Thanks for the fix

@@ -129,6 +129,10 @@ public IGraphicsStateOperation Create(OperatorToken op, IReadOnlyList<IToken> op
case SetColorRenderingIntent.Symbol:
return new SetColorRenderingIntent((NameToken)operands[0]);
case SetFlatnessTolerance.Symbol:
if (operands.Count == 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder if there's a way to change this mapping to use new codegen stuff where the input is basically expected args, fallback behavior, expected output or something, to reduce the number of times we need to fix individual ones to be more fault tolerant, ah well, a nice thought experiment, LGTM

@BobLd BobLd merged commit f5b4b84 into master Oct 18, 2023
1 check passed
@BobLd BobLd deleted the 682-error-reading-pdf branch October 18, 2023 22:00
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.

Error reading PDF
2 participants