Closed edemaine closed 11 months ago
Looks like the viewbox is very tight around the arrow and maybe the path thickness is not considered for the clip. Obviously even Illustrator and Chrome's PDF rendering engine disagree, here.
Maybe, as a workaround try to increase the viewbox of the marker:
Adding unit: 'px'
to the jsPDF
constructor, as suggested in https://github.com/yWorks/svg2pdf.js/issues/244#issuecomment-1670984841 , fixed this issue as well. Closing in favor of https://github.com/parallax/jsPDF/issues/3627
Describe the bug Used
<marker>
s get clipped by a weird rectangle.To Reproduce Put the following into a .html file, then open in a web browser. (Warning: It will immediately trigger a download of file test.pdf)
Expected behavior It should look like the SVG:
Screenshots Instead the marker gets clipped. Here's a screenshot in Illustrator:
In the playground it's much better, but the back corners of the marker are clipped a little:
Desktop (please complete the following information):