Skip to content

SVG: draw the SVG 2 line joins miter-clip and arcs as miter - #2195

Merged
andersonhc merged 2 commits into
py-pdf:masterfrom
RavSinghChandan:svg-stroke-linejoin-svg2
Nov 14, 2026
Merged

andersonhc merged 2 commits into
py-pdf:masterfrom
RavSinghChandan:svg-stroke-linejoin-svg2

Conversation

@RavSinghChandan

Copy link
Copy Markdown

stroke-linejoin="miter-clip" fails with ValueError: miter-clip is not a valid StrokeJoinStyle. JPEXS Free Flash Decompiler writes it in the SVG shapes it exports, e.g. those of neave.tv-recoded and of the Mewgenics save editor, so none of them convert.

miter-clip and arcs are line joins of SVG 2 (https://www.w3.org/TR/SVG2/painting.html#LineJoin) that PDF does not have, and browsers that don't support them draw a miter join. They are now drawn as miter. Other values, such as bad in the existing test, still raise.

test_svg_stroke_linejoin_svg2 covers both values as attributes and in style.

PDF has no such line join, and stroke-linejoin="miter-clip", as JPEXS
Free Flash Decompiler writes, failed with ValueError: miter-clip is not
a valid StrokeJoinStyle.
@andersonhc
andersonhc merged commit 5c90c23 into py-pdf:master Nov 14, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants