TCPDF icon indicating copy to clipboard operation
TCPDF copied to clipboard

Rendering of SVG -> PDF issue

Open BilboTav opened this issue 1 year ago • 3 comments

I use tcpdf to render SVG template into PDF for my CV and certain snippet is badly rendered on newest version:

6.7.5 (looks fine) image

vs

6.7.7 (edge point is ugly rendered) image

SVG part is this:

<path fill="{$color}"
              d="m 49.854628,14.022875 c 14.402622,0 26.928265,8.131049 33.359621,20.109374 l 6.74e-4,-3.41e-4 c
              0,0 0.717926,1.310865 1.503538,1.396184 0.785608,0.08532 1.081936,-1.855893 1.081936,-1.855893 l 0.002,6.83e-4 C
              87.752132,14.926248 104.28866,14.852189 104.28866,14.852189 h 14.50128 91.2102 V 0.00504815 H 0.00158345 V 84.119175
              H 6.9319861 c 5.2194399,0 4.9918029,-6.812334 4.9918029,-6.812334 v -23.359404 0 c -0.01751,-0.482916 -0.02694,-0.967535
              -0.02694,-1.454546 0,-21.246185 16.994158,-38.470016 37.957778,-38.470016 z" />

I am just giving heads up - maybe this fluke of mine is a sign of some other issues with regards of rendering SVG with Your library ?

Thanks.

BilboTav avatar Nov 29 '24 13:11 BilboTav

Can you try to revert some of the changes in https://github.com/tecnickcom/TCPDF/compare/6.7.5...6.7.7 to find the one that is wrong ?

williamdes avatar Nov 29 '24 21:11 williamdes

Can you try to revert some of the changes in 6.7.5...6.7.7 to find the one that is wrong ?

Hello, sorry for late response - issue starts with 6.7.7, 6.7.6 is fine. Thanks You!

BilboTav avatar Dec 12 '24 12:12 BilboTav

Similar issue here. Reverting to 6.7.6 did the trick. Will do that for now.

SVG vs rendered PDF logo

Screenshot 2025-01-13 at 08 18 14

grizzm0 avatar Jan 13 '25 07:01 grizzm0