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

Extracting Stroke Dasharray in LTCurve #630

Closed
TimMcCauley opened this issue Jun 12, 2021 · 2 comments · Fixed by #801
Closed

Extracting Stroke Dasharray in LTCurve #630

TimMcCauley opened this issue Jun 12, 2021 · 2 comments · Fixed by #801

Comments

@TimMcCauley
Copy link

TimMcCauley commented Jun 12, 2021

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?

@JulianFeinauer
Copy link
Contributor

I also need this feature : )

JulianFeinauer added a commit to JulianFeinauer/pdfminer.six that referenced this issue Aug 26, 2022
Add raw points to get full information from bezier segments and dashing style
JulianFeinauer added a commit to JulianFeinauer/pdfminer.six that referenced this issue Aug 26, 2022
Add raw points to get full information from bezier segments and dashing style
JulianFeinauer added a commit to JulianFeinauer/pdfminer.six that referenced this issue Aug 26, 2022
Add raw points to get full information from bezier segments and dashing style
@pietermarsman
Copy link
Member

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 pietermarsman mentioned this issue Nov 5, 2022
5 tasks
pietermarsman added a commit that referenced this issue Nov 6, 2022
* Fixes #672 and #630

Add raw points to get full information from bezier segments and dashing style

* Use intermediate variables for constructing tranformed_path

Co-authored-by: Pieter Marsman <pietermarsman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants