pdfminer.six icon indicating copy to clipboard operation
pdfminer.six copied to clipboard

Extracting Stroke Dasharray in LTCurve

Open TimMcCauley opened this issue 4 years ago • 1 comments

Thank you for maintaining this wonderful library. Currently I am mining pdf files consisting of curves which either have a stroke dash-array or with just a normal stroke (see image attached). From what I can discover in the source code this information is not parsed in the mining process. Screenshot 2021-06-12 at 21 49 25. My question is if I am missing something very obvious that could help me determine this differentiation? If this is a feature that currently does not exist, would you be interested in a PR?

TimMcCauley avatar Jun 12 '21 20:06 TimMcCauley

I also need this feature : )

JulianFeinauer avatar Aug 26 '22 07:08 JulianFeinauer

For this we need to extract the "Line Dash Pattern" from the graphics state as mentioned in Section 4.3.2 "Details of Graphics State Parameters" in the pdf reference.

pietermarsman avatar Oct 15 '22 07:10 pietermarsman