Skip to content

Using dash_pattern in local_context #1469

Answered by JKomp
JKomp asked this question in Q&A
Discussion options

You must be logged in to vote

I needed to understand Python mappings better. Here's the correct syntax:

with myPDF.local_context(draw_color=(colors[6].r,colors[6].g,colors[6].b), stroke_opacity=colors[6].opacity, line_width=2.5, dash_pattern={'dash':2,'gap':2})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lucas-C
Comment options

Answer selected by JKomp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants