-
Notifications
You must be signed in to change notification settings - Fork 928
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
Error regarding ‘evenodd’ value of LTCurve object #1024
Comments
What is the expected behaviour here? If the shape was painted with the even-odd rule in the PDF, then (It looks you are actually using pdfplumber, not pdfminer.six directly, but the |
On further investigation it appears that this is related to jsvine/pdfplumber#1057, which is related to #861 and #963. I'm still not quite sure what the expected behaviour should be, though. I think the issue is that you have one path (the porous shape above) with a lot of subpaths, which has been drawn with the The problem here wouldn't be Is this correct? |
Hello @dhdaines, your point is correct, I fell into a misunderstanding before, the "evenodd" property can only be used to distinguish between odd and non-zero wrap rules, and in fact cannot tell whether the LTCurve shape is a hole or not. |
Thanks! That's kind of what I thought - your misunderstanding of
I think @jsvine might need to weigh in on this since I think he contributed the code in question? Probably the simplest to implement would be (1) or (3). |
Hello everyone!I found a problem regarding the 'evenodd' value of the object
When I try to get the data of this porous shape, the 'evenodd' values obtained are all true
This is the PDF I used for testing:
Spin-City-Letters-6fae9bb1b9a6b3dd0f5811b066e9ed8e (1).pdf
When I use letters or numbers to convert shapes, the data recognized is correct, and the value of 'evenodd' is false.
But when using a custom shape, the recognized values of 'evenodd' are all true.
Can anyone solve this problem?Thanks!
The text was updated successfully, but these errors were encountered: