pdfminer / pdfminer.six

Community maintained fork of pdfminer - we fathom PDF
https://pdfminersix.readthedocs.io
MIT License
5.96k stars 930 forks source link

original_path extraction error regarding LTCurve #925

Closed KaboChow closed 9 months ago

KaboChow commented 11 months ago

During the process of extracting shape data from a PDF, I converted the created text letter 'o' into a shape object.

image Here is the curve data I obtained.

image Normally, there should only be one set of curve data. However, it seems that there are two in this case. Here is the graphic created on the canvas using the obtained data:

image The filling color obtained for the second set of curve data is incorrect.

This is the PDF I conducted the test on: LTCurve.pdf

Is there any way to resolve this? Thank you very much.

pietermarsman commented 11 months ago

@KaboChow What is the code you are using to extract the curves?

KaboChow commented 9 months ago

@pietermarsman Thank you for your reply. Regarding the question I am having, I have found the answer in another question here