-
Notifications
You must be signed in to change notification settings - Fork 947
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? |
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). |
Thanks for investigating this. PR's are welcome. |
Hello everyone!I found a problem regarding the 'evenodd' value of the object
![image](https://private-user-images.githubusercontent.com/46550365/350305524-4c26d652-4540-4435-ab5b-015c7aa1b0d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTM2OTcsIm5iZiI6MTczOTE5MzM5NywicGF0aCI6Ii80NjU1MDM2NS8zNTAzMDU1MjQtNGMyNmQ2NTItNDU0MC00NDM1LWFiNWItMDE1YzdhYTFiMGQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMTYzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwZGYyMDBjYjI2ZmIyYWNmZDI1OGE5YmMzNGE2N2IwM2Y4YTYwNjgwNDVjNTZjMTQwYjJmMTA0OTVmOGJkMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UVVeuWCW17ehAQVO_f28sySX9NTO47xCV0ggm45-pP4)
![image](https://private-user-images.githubusercontent.com/46550365/350306138-04af5e66-889d-4fd2-aee3-0dfbd61b7079.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTM2OTcsIm5iZiI6MTczOTE5MzM5NywicGF0aCI6Ii80NjU1MDM2NS8zNTAzMDYxMzgtMDRhZjVlNjYtODg5ZC00ZmQyLWFlZTMtMGRmYmQ2MWI3MDc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMTYzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0ZmRiY2U1N2JkMjJkOWU0MDhlN2UxYjAyYzMwYjc4OWJlYzFlZWE1MGYxODUzNTFkMjg1YWQ1YjAyZmQwYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.eVfc9b4GAEpQA6HjINrQT5if5J47nIKijY2ehLRGShM)
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: