问题描述
我正在尝试将 SVG 文件转换为 PDF,但文本未显示且图像在输出 PDF 中错位。
这是我的 SVG 文件代码:
<svg width="250" height="250" viewBox="0 0 250 250" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="ui-draggable ui-draggable-handle" style="top: 0px; left: 0px; margin-left: 2.5%; margin-top: 2.5%; width: 95%; height: 95%;">
<defs>
<pattern xmlns="http://www.w3.org/2000/svg" id="g34r76i4d" patternUnits="userSpaceOnUse" width="15" height="15">
<line stroke="#cccccc" x1="7.5" y1="0" x2="7.5" y2="15"></line>
<line stroke="#cccccc" x1="0" y1="7.5" x2="15" y2="7.5"></line>
</pattern>
<path id="roundp1" d=" M26.690000000000012 125 a98.30999999999999 98.30999999999999 1 0 1 196.61999999999998 0 a98.30999999999999 98.30999999999999 1 0 1 -196.61999999999998 0z " transform="rotate(0,125,125)"></path>
</defs>
<circle layer="0" id="Round0" class="vframe-stamp" cx="125" cy="125" r="123" fill="none" stroke="#2f69c2" stroke-width="2"></circle>
<g id="RoundText1" class="group_text" layer="1" font-size="28" font-style="normal" font-weight="normal" font-family="Arial" fill="#2f69c2" stroke="none" in="0" rad="125" cut="0" len="677.3836363636364" radius="98.30999999999999"><text textLength="590.5438956521739"><textPath xlink:href="#roundp1" textLength="590.5438956521739">Sic Mundus Creatus Est.</textPath></text>
</g>
<g id="Image1" layer="1" x="125" y="125" s="65.80000000000001" transform="matrix(0.6580000000000001,0.6580000000000001,42.75,42.75)" stroke-width="32"><path fill="#2f69c2" fill-rule="nonzero" d="M67.92 75.36c-1.51,0.24 -4.19,0.59 -5.97,0.73 -9.92,0.83 -14.77,1.56 -18.6,2.81 -5.31,1.73 -9.04,4.31 -11.96,8.28l-1.08 1.44 -3.82 0.64c-2.1,0.36 -5.05,0.99 -6.56,1.43 -3.22,0.95 -2.95,0.49 -3.34,5.85l-0.27 3.78 -0.78 0.2 -0.8 0.22 0 4.14c0,4 0.02,4.17 0.56,4.7 0.32,0.32 0.73,0.61 0.93,0.69 0.26,0.09 0.34,0.95 0.34,4.94l0 4.85 -0.98 0.3c-0.83,0.22 -1.02,0.41 -1.39,1.34 -0.24,0.58 -0.53,1.85 -0.68,2.78 -0.15,0.95 -0.34,1.85 -0.46,2.02 -0.1,0.15 -2.29,0.83 -4.88,1.51 -6.68,1.71 -6.36,1.36 -6.36,6.95 0,6.7 0.85,16.25 1.88,20.69 0.53,2.36 1.63,3.53 4.29,4.53 4.63,1.73 4.7,1.78 6.99,5.56 2.24,3.7 4.07,4.85 8.41,5.29 2.49,0.24 7.85,-0.3 8.8,-0.88 0.9,-0.56 1.92,-2.02 2.68,-3.88l0.53 -1.34 7.78 -0.14c4.27,-0.1 10.12,-0.25 13.02,-0.34l5.26 -0.2 0.32 1.32c0.73,3.19 3.16,7.01 5.09,8.01 2.46,1.25 7.85,1.76 12.82,1.25 4.51,-0.47 6.63,-1.9 8.31,-5.51 0.81,-1.76 1.63,-5.24 1.93,-8.17 0.24,-2.43 0.22,-2.38 1.53,-2.26 0.64,0.05 1.97,0.19 2.97,0.34 1.3,0.19 2.81,0.17 5.12,0 5.29,-0.44 32.93,-2.63 46.31,-3.68 17.38,-1.39 20.62,-1.63 28.95,-2.32 4.07,-0.34 7.54,-0.61 7.71,-0.61 0.21,0 0.36,0.47 0.43,1.32 0.17,2 1.37,4.19 3.25,5.95 0.95,0.9 1.92,1.58 2.48,1.75 0.51,0.12 2.66,0.32 4.75,0.41 3.81,0.15 3.83,0.15 5.17,-0.51 2.27,-1.12 3.9,-3.58 4.78,-7.26 0.27,-1.12 0.49,-2.36 0.49,-2.75l0 -0.73 8.72 -0.69c18.94,-1.51 31.88,-2.61 32.59,-2.8l0.73 -0.22 -0.08 -14.84c-0.02,-8.17 -0.12,-17.11 -0.19,-19.92l-0.12 -5.04 1.36 0c1.54,0 1.56,-0.03 0.85,-2.05 -0.63,-1.85 -1.26,-2.68 -2.51,-3.29 -0.73,-0.34 -6.65,-1.41 -21.37,-3.8 -11.19,-1.8 -21.98,-3.58 -24.01,-3.9 -2,-0.32 -12.82,-2.1 -24,-3.9 -11.19,-1.83 -22.33,-3.63 -24.74,-4.02 -2.41,-0.39 -13.55,-2.2 -24.74,-4.02 -11.19,-1.81 -22.32,-4.03 -19.91,-3.24 -19.08,-3.14 -25.22,-3.26 -4.83,-0.1 -6.17,-0.05 -8.48,0.34l0 0zm13.72 0.85c0.81,0.1 2.32,0.52 3.39,0.91 1.58,0.61 2.22,1.04 3.73,2.46 1,0.95 2.58,2.78 3.56,4.04 1.56,2.1 1.75,2.49 1.9,3.76 0.22,1.8 0.41,8.45 0.71,22.17 0.12,5.85 0.29,10.78 0.36,10.9 0.1,0.14 3.56,0.24 9.29,0.24l9.11 0 0 0.54c0,0.31 0.12,2.07 0.25,3.92l0.24 3.39 2.24 3.17c1.22,1.73 2.36,3.21 2.56,3.29 0.17,0.07 2.05,0 4.14,-0.17 3,-0.25 3.9,-0.39 4.12,-0.69 0.17,-0.22 1.1,-1.75 2.05,-3.43l1.78 -3.05 -0.22 -3.24 -0.22 -3.24 4.75 0c4.63,0 56.33,0.58 73.61,0.83 4.75,0.07 10.38,0.14 12.5,0.14l3.83 0 0 1.05c0,0.58 0.17,1.61 0.36,2.29 0.37,1.24 2.63,5 2.97,4.9 0.13,-0.02 1.2,0.05 2.42,0.15 3.12,0.26 3.51,0.05 4.34,-2.54 0.43,-1.41 0.63,-2.51 0.63,-3.78l0 -1.8 3.48 -0.07 3.47 -0.08 0.05 -7.55c0.02,-4.17 0.12,-7.58 0.19,-7.63 0.07,-0.02 0.44,-0.05 0.83,-0.05l0.71 0 0.17 19.5c0.09,10.75 0.12,19.57 0.05,19.64 -0.05,0.08 -3.29,0.39 -7.15,0.71 -11.65,0.98 -31.39,2.56 -31.78,2.56 -0.31,0 -0.36,-0.61 -0.36,-3.95 0,-4.39 -0.34,-6.07 -1.54,-7.85 -1.09,-1.61 -1.68,-1.9 -4.09,-2.02 -4.1,-0.24 -6.92,0.83 -9.36,3.53 -2.56,2.86 -3.8,5.8 -4.07,9.73 -0.12,1.75 -0.22,2.26 -0.51,2.26 -0.2,0 -3.66,0.27 -7.71,0.61 -17.37,1.44 -75.74,6.15 -77.89,6.29l-0.85 0.05 -0.15 -6.21c-0.14,-6.8 -0.46,-9.22 -1.68,-12.94 -1.83,-5.54 -6,-9.17 -12.5,-10.83 -3.59,-0.9 -6.1,-0.97 -15.77,-0.39 -12.33,0.76 -21.3,1.64 -22.42,2.22 -0.32,0.17 -0.44,-0.15 -0.69,-1.92 -0.34,-2.59 -1,-4.76 -1.85,-6.19l-0.61 -1.1 -2.63 -0.39c-8.41,-1.24 -17.57,-1.19 -22.59,0.12 -0.52,0.15 -0.98,0.2 -1.05,0.12 -0.3,-0.26 8.19,-2.7 12.74,-3.65 7.97,-1.66 16.14,-2.44 25.45,-2.46 7.31,0 13.14,0.46 19.5,1.56 4.82,0.82 5.36,0.97 5.36,1.51 0,0.26 0.39,0.7 0.97,1.07 0.54,0.34 0.98,0.78 0.98,0.97 0,0.22 0.49,0.59 1.12,0.86 1.51,0.66 1.88,0.63 1.75,-0.1 -0.17,-0.88 0.56,-0.98 4.05,-0.49 1.63,0.25 3.27,0.34 3.61,0.27l0.63 -0.17 0.2 -3.83c0.31,-6.8 -0.44,-17.06 -1.81,-24.2 -0.36,-1.95 -0.63,-4.22 -0.63,-5.04 0.02,-1.17 -0.05,-1.54 -0.37,-1.66 -0.66,-0.27 -17.86,0.07 -23.66,0.49 -7.36,0.48 -14.97,1.19 -23.77,2.19 -10.4,1.2 -9.55,1.02 -9.74,1.92 -0.08,0.42 -0.22,6.32 -0.3,13.12 -0.12,11.57 -0.14,12.38 -0.56,12.38 -0.39,0 -0.44,-0.51 -0.58,-5.87 -0.1,-3.25 -0.15,-9.05 -0.12,-12.92 0.07,-6.44 0.02,-7.07 -0.37,-7.51 -0.39,-0.41 -0.39,-0.53 -0.05,-1.17 0.49,-0.9 2.24,-3 3.32,-3.9 4.16,-3.58 10.72,-5.53 21.93,-6.53 0.88,-0.07 4.34,-0.39 7.68,-0.73 3.36,-0.34 6.75,-0.63 7.55,-0.68 2.27,-0.1 7.41,0 9.02,0.19l0 0zm35.83 5.85c15.55,2.52 30.63,4.93 33.51,5.39 2.87,0.46 7.55,1.22 10.36,1.66 2.82,0.46 16.47,2.65 30.34,4.9 27.25,4.38 44.72,7.19 49.35,7.94 1.61,0.25 3.05,0.47 3.22,0.47 0.61,0 1.98,1.48 2.49,2.7 0.32,0.68 0.51,1.29 0.44,1.34 -0.08,0.1 -8.19,-0.78 -16.26,-1.73 -1.68,-0.2 -9.36,-1.07 -17.06,-1.95 -7.7,-0.88 -18.28,-2.07 -23.52,-2.68 -5.21,-0.61 -19.64,-2.24 -32.05,-3.66 -23.35,-2.65 -28.95,-3.29 -34.12,-3.89 -1.68,-0.2 -8.41,-0.98 -14.99,-1.71 -6.56,-0.73 -12.28,-1.39 -12.7,-1.46 -0.7,-0.12 -0.78,-0.22 -0.9,-1.37 -0.1,-0.68 -0.41,-1.8 -0.73,-2.48 -0.85,-1.86 -3.71,-5.32 -6.07,-7.37 -1.05,-0.9 -1.05,-0.9 -0.32,-0.75 0.42,0.07 13.46,2.17 29.01,4.65zm-35.61 5.05c-0.46,1.48 -0.58,2.53 -0.58,5.72 0,2.81 -0.08,3.49 -0.35,3.49 -0.87,0 -0.95,0.59 -0.68,5.53l0.24 4.8 0.83 0.66c0.71,0.59 0.76,0.71 0.37,0.85 -1.05,0.39 -1.39,2.47 -0.93,5.71 0.25,1.7 0.12,2.02 -0.68,1.88 -4.95,-0.91 -8.75,-1.47 -13.79,-2 -3.34,-0.34 -6.15,-0.71 -6.22,-0.76 -0.54,-0.53 -0.61,-24.69 -0.07,-25.22 0.58,-0.59 7.94,-1.1 16.23,-1.17l5.8 -0.03 -0.17 0.54 0 0zm8.31 -0.29c0.1,0.14 -0.7,0.24 -2.24,0.24 -2.02,0 -2.58,0.1 -3.49,0.53l-1.09 0.57 0.07 5.23c0.03,2.88 0.17,7.05 0.29,9.27 0.44,7.23 0.61,16.81 0.3,16.81 -0.18,0 -0.3,-0.29 -0.3,-0.68 0,-0.37 -0.17,-3.02 -0.36,-5.9 -0.51,-7.77 -0.95,-21.54 -0.76,-23.71 0.2,-1.85 0.22,-1.93 0.95,-2.24 0.93,-0.42 6.39,-0.51 6.63,-0.12zm-31.41 1.24c-0.08,0.41 -0.27,2.27 -0.42,4.12 -0.19,2.65 -0.17,4.85 0.12,10.53 0.49,8.99 0.49,10.43 0.05,10.43 -0.46,0 -0.63,-2.41 -0.73,-10.56 -0.07,-6.09 0.17,-14.13 0.46,-14.98 0.25,-0.66 0.66,-0.3 0.52,0.46l0 0zm-2.05 12.21l-0.08 12.75 -3.33 0.17c-1.83,0.12 -6.39,0.58 -10.1,1.04 -3.7,0.47 -7.06,0.86 -7.48,0.86l-0.75 0 0.05 -12.36 0.07 -12.38 1.58 -0.29c1.44,-0.27 4.54,-0.66 15.48,-2 2.02,-0.25 3.88,-0.47 4.14,-0.49 0.49,-0.02 0.49,0.1 0.42,12.7l0 0zm33.8 -11.7c0.27,0.73 1.12,5.83 1.66,9.94 0.34,2.59 0.44,5.12 0.44,11.87 0,4.71 -0.08,8.63 -0.17,8.73 -0.08,0.1 -0.81,0.05 -1.59,-0.12 -2.51,-0.49 -2.29,-0.03 -2.22,-4.34 0.05,-4.12 -0.09,-4.78 -1.19,-5.95 -0.58,-0.61 -0.61,-0.7 -0.27,-1.09 0.81,-0.93 1,-2.25 0.83,-5.44 -0.07,-1.68 -0.27,-3.44 -0.39,-3.92 -0.31,-1.15 -1.14,-1.88 -2.19,-1.98l-0.85 -0.07 -0.08 -3.83 -0.05 -3.8 1.64 -0.17c0.92,-0.07 1.82,-0.19 2.02,-0.22 0.19,-0.05 0.78,-0.1 1.29,-0.12 0.73,-0.03 0.95,0.07 1.12,0.51l0 0zm-59.49 1.46c0.15,0.15 0.29,0.34 0.29,0.44 0,0.1 -1.34,0.24 -2.97,0.34 -1.66,0.1 -3.71,0.27 -4.58,0.42 -1.44,0.22 -4.76,1.22 -5.05,1.53 -0.27,0.27 -0.61,6.48 -0.75,14.53l-0.17 8.41 -0.22 -5.61c-0.22,-5.58 -0.05,-14.62 0.29,-16.67 0.14,-0.97 0.27,-1.1 1.14,-1.41 5.56,-2 10.92,-2.88 12.02,-1.98l0 0zm72.92 1.32c3.56,0.37 6.53,0.73 6.61,0.8 0.09,0.08 0.22,6.27 0.26,13.73l0.1 13.6 -7.26 0 -7.26 0 0 -1.91c0,-1.02 -0.17,-7.04 -0.37,-13.33 -0.2,-6.31 -0.37,-11.99 -0.37,-12.65l0 -1.19 0.93 0.15c0.49,0.07 3.8,0.44 7.36,0.8l0 0zm-72.6 8.68c0,4.6 0.05,8.62 0.09,8.96 0.22,1.86 0.2,6.37 -0.02,6.59 -0.15,0.14 -1.46,0.53 -2.93,0.87 -1.46,0.32 -3.97,1.03 -5.58,1.54 -2.63,0.85 -2.95,0.9 -3.14,0.53 -0.12,-0.22 -0.29,-2.14 -0.34,-4.31l-0.12 -3.92 0.99 -0.15c0.54,-0.1 1.22,-0.39 1.54,-0.63 0.59,-0.47 0.59,-0.54 0.59,-4.76 0,-4.97 -0.08,-5.11 -1.95,-5.07l-1.15 0.05 0.15 -2.12c0.29,-3.87 0.36,-4.21 1,-4.46 1.48,-0.56 6.11,-1.22 10.18,-1.44l0.66 -0.02 0.03 8.33 0 0.01zm82.5 -7.51c0.02,0 0.09,6.09 0.19,13.48l0.17 13.48 -1.07 0 -1.07 0 -0.17 -2.25c-0.08,-1.21 -0.15,-7.36 -0.15,-13.64l0 -11.46 1.05 0.17c0.56,0.1 1.05,0.2 1.05,0.22l0 0zm8.43 0.9c3.65,0.42 6.68,0.78 6.7,0.81 0.03,0 0.12,5.63 0.22,12.45l0.17 12.41 -1.19 -1c-0.66,-0.56 -1.56,-1.39 -2,-1.86l-0.83 -0.85 -2.9 -0.02c-1.61,-0.03 -3.05,-0.1 -3.22,-0.17 -0.17,-0.05 -1.12,0.73 -2.12,1.73 -1,1 -1.9,1.82 -2,1.82 -0.12,0 -0.19,-5.87 -0.19,-13.03 0,-11.17 0.05,-13.04 0.34,-13.04 0.19,0 3.36,0.34 7.02,0.75l0 0zm9.94 13.63l0 12.67 -0.97 0 -0.98 0 0 -3.36c0,-1.83 -0.07,-7.54 -0.17,-12.68l-0.14 -9.31 1.12 0 1.14 0 0 12.68 0 0zm7.75 -11.73c3.39,0.39 6.19,0.73 6.24,0.78 0.05,0.05 0.17,5.46 0.27,12.02l0.17 11.89 -6.58 -0.1c-3.63,-0.04 -6.65,-0.14 -6.7,-0.19 -0.08,-0.07 -0.2,-5.75 -0.29,-12.63 -0.17,-12.06 -0.17,-12.47 0.26,-12.47 0.27,0 3.25,0.31 6.63,0.7l0 0zm9.22 1.34c0.04,0.15 0.12,5.46 0.14,11.8l0.08 11.5 -0.88 0 -0.88 0 -0.14 -5.16c-0.1,-2.83 -0.18,-8.19 -0.18,-11.9l0 -6.72 0.88 0.09c0.46,0.05 0.9,0.22 0.98,0.39l0 0zm7.28 0.54c3.22,0.36 5.93,0.71 6,0.8 0.1,5.12 0.27,11.21l0.12 11.05 -6.17 -0.08c-3.39,-0.05 -6.21,-0.15 -6.29,-0.22 -0.24,-0.27 -0.26,-23.4 -0.02,-23.4 0.15,0 2.87,0.3 6.09,0.64l0 0zm-70.04 0.88c0.41,0.78 0.61,6.97 0.24,8.06 -0.27,0.76 -0.41,0.9 -0.97,0.9l-0.69 0 -0.19 -4.77c-0.12,-3.8 -0.1,-4.83 0.14,-5 0.42,-0.24 1.1,0.15 1.47,0.81l0 0zm78.89 11.26l0.05 11.16 -0.54 -0.15c-0.31,-0.07 -0.7,-0.14 -0.85,-0.14 -0.24,0 -0.32,-2.39 -0.32,-11.12l0 -11.09 0.81 0.08 0.78 0.07 0.07 11.19 0 0zm6.83 -10.46c3.11,0.34 5.72,0.61 5.8,0.61 0.05,4.7 0.09,10.48l0 10.48 -5.85 0 -5.85 0 0 -11.09c0,-6.09 0.03,-11.09 0.08,-11.09 0.02,0 2.61,0.27 5.72,0.61l0.01 0zm8.35 11.33c0.1,5.71 0.13,10.41 0.1,10.44 -0.05,0.04 -0.41,0.02 -0.8,-0.05l-0.71 -0.17 -0.14 -4.78c-0.1,-2.63 -0.18,-7.29 -0.18,-10.36l0 -5.58 0.81 0.07 0.78 0.08 0.14 10.35 0 0zm6.68 -9.67l5.12 0.53 0.07 9.83 0.05 9.79 -5.41 -0.05 -5.43 -0.07 -0.12 -10.11c-0.08,-5.56 -0.1,-10.19 -0.05,-10.31 0.09,-0.22 -0.39,-0.25 5.77,0.39l0 0zm-166.22 0.39c0.3,0.49 0.61,5.34 0.44,6.6 -0.19,1.34 -0.19,1.34 -1.12,1.42l-0.9 0.07 0 -4.02c0,-3.61 0.05,-4.02 0.44,-4.12 0.7,-0.2 1,-0.17 1.14,0.05l0 0zm173.68 2.95c0.1,1.41 0.17,5.82 0.2,9.84l0.02 7.27 -0.66 -0.18c-0.39,-0.09 -0.7,-0.17 -0.73,-0.19 -0.02,-0.05 -0.14,-18.65 -0.1,-19.13 0.03,-0.2 0.25,-0.3 0.59,-0.25 0.51,0.08 0.53,0.22 0.68,2.64l0 0zm6.85 -1.71c2.24,0.27 4.19,0.49 4.34,0.49 0.17,0 0.24,3 0.24,9.14l0 9.14 -5.12 0 -5.11 0 0 -5.32c0,-2.94 -0.08,-7.33 -0.18,-9.77l-0.14 -4.43 0.95 0.14c0.51,0.08 2.78,0.34 5.02,0.61l0 0zm6.56 0.73c0.12,0 0.21,3.76 0.21,9.14 0,5.39 -0.09,9.14 -0.21,9.14 -1.03,0 -1,0.15 -1,-9.43 0,-8.24 0.05,-9.14 0.39,-8.99 0.22,0.07 0.48,0.14 0.61,0.14zm6.36 0.64c2.24,0.22 4.16,0.48 4.29,0.56 0.12,0.07 0.29,3.94 0.39,8.62l0.17 8.46 -4.95 -0.05 -4.95 -0.07 -0.07 -9.12 -0.05 -9.09 0.53 0.12c0.32,0.08 2.39,0.32 4.63,0.56l0.01 0.01zm6.77 8.84c0,4.41 0.08,8.19 0.15,8.41 0.12,0.29 0,0.39 -0.44,0.39l-0.61 0 -0.15 -4.43c-0.09,-2.42 -0.17,-6.22 -0.17,-8.41l0 -3.98 0.61 0 0.61 0 0 8.02 0 0zm6.29 -7.38l3.95 0.41 0 4.44c0,2.44 0.07,5.46 0.17,6.68l0.14 2.26 -1.82 -0.17 -1.83 -0.17 -1.17 1.49 -1.2 1.51 -1.7 -0.08 -1.73 -0.07 -0.08 -8.48 -0.05 -8.51 0.66 0.15c0.39,0.07 2.47,0.32 4.66,0.54l0 0zm5.97 7.21c0.1,3.83 0.07,6.49 -0.05,6.61 -0.12,0.12 -0.41,0.17 -0.61,0.09 -0.34,-0.14 -0.39,-0.97 -0.39,-6.62 0,-6.12 0.03,-6.46 0.44,0 0.46,0.41 0.61,6.38zm5.85 -5.87l2.61 0.29 0 7.46 0 7.46 -3.36 0c-2.52,0 -3.49,-0.1 -3.78,-0.34 -0.37,-0.3 -0.42,-1.15 -0.42,-7.9l0 -7.56 1.17 0.15c0.64,0.29 3.78,0.44zm-152.62 3.12c0.46,0.36 0.59,0.78 0.73,2.36 0.1,1.07 0.2,2.93 0.2,4.15 0.02,2.43 -0.03,2.53 -1.46,2.53 -0.69,0 -0.71,-0.05 -0.71,-1.17 0,-0.63 -0.07,-2.75 -0.17,-4.75 -0.15,-3.49 -0.15,-3.59 0.34,-3.59 0.29,0 0.76,0.2 1.07,0.47l0 0zm40.73 9.19c1.19,1.24 2.07,2.36 2.17,2.77 0.07,0.39 0.22,1.95 0.31,3.47l0.17 2.75 -1.75 3 -1.73 2.97 -1.27 0c-0.68,0 -2.29,0.07 -3.58,0.15l-2.32 0.17 -2.12 -2.98 -2.12 -2.97 0 -3.78 0 -3.8 1.88 -1.92 1.85 -1.93 3.24 0 3.25 0 2.02 2.1 0 0zm105.68 1.7c1.82,0.76 2.48,4.88 1.29,7.95 -0.51,1.31 -0.61,1.41 -1.32,1.41 -0.44,0 -1.48,0.07 -2.36,0.15l-1.59 0.14 -1.16 -1.73 -1.15 -1.73 0 -2.34c0,-2.36 0.15,-2.95 1.07,-3.95 0.49,-0.56 0.61,-0.58 2.46,-0.41 1.08,0.32 2.76,0.51l0 0zm-197.54 0.22c4.95,0.51 7.75,1.05 8.14,1.54 0.71,0.92 1.34,3.63 1.48,6.38l0.18 2.81 4.38 0.14c2.42,0.08 5.63,0.34 7.17,0.59 2.73,0.41 2.75,0.44 3.09,1.22 0.49,1.17 1.25,5.26 1.54,8.26 0.29,2.95 0.37,14.26 0.12,18.84l-0.17 2.92 -3.92 0.1c-2.17,0.07 -5.02,0.05 -6.36,-0.03l-2.44 -0.12 0 -1.95c-0.03,-3.19 -0.1,-3.97 -0.46,-4.31 -0.22,-0.24 -1.22,-0.34 -3.47,-0.39 -9.18,-0.17 -21.47,-0.85 -29.75,-1.68 -3.44,-0.32 -4.27,-0.34 -4.56,-0.08 -0.29,0.25 -0.39,0.83 -0.39,2.59 0,2.61 0.05,2.58 -2.05,1.8 -1.92,-0.73 -2.66,-1.66 -3.26,-4.29 -1.17,-4.9 -1.74,-10.04 -1.93,-17.79l-0.15 -6.12 0.59 -0.14c0.32,-0.1 2.8,-0.17 5.48,-0.17 3.68,0 4.97,-0.08 5.17,-0.32 0.14,-0.17 0.39,-1.68 0.53,-3.34 0.42,-4.65 0.44,-4.68 1.71,-5.05 1.56,-0.46 6.31,-1.29 8.63,-1.51 3.22,-0.31 7.12,-0.29 10.7,0.1l0 0zm47.96 8.51c3.85,0.61 6.8,1.68 8.51,3.09 4.9,4.07 6.73,9.97 6.53,21.3l-0.07 4.64 -1.03 0.07 -1 0.07 -0.17 -2.39c-0.36,-5.8 -1.26,-9.84 -2.75,-12.6 -0.85,-1.56 -3,-3.89 -4.32,-4.65 -2.7,-1.61 -8.18,-2.15 -11.33,-1.14 -7.07,2.29 -11.94,11.43 -11.94,22.39 0,2.73 0.1,2.54 -1.71,2.88 -0.46,0.1 -1.07,0.22 -1.31,0.29 -0.44,0.12 -0.47,-2.39 0.56,-8.92 0.68,-13.04 0.44,-16.67 -0.44,-6.29 -1.56,-11.77 -2.56,-12.45 -0.34,-0.2 -2.17,-0.51 -4.8,-0.76l-4.24 -0.44 2.97 -0.17c1.61,-0.07 5.24,-0.39 8.04,-0.68 10.39,-1.05 16.11,-1.14 21.06,-0.39l0 0zm119.11 8.02c0.78,0.7 1.71,2.65 2,4.19 0.37,1.95 0.24,8.21 -0.17,8.36 -0.25,0.07 -0.32,-0.42 -0.32,-1.93 0,-5.97 -1.85,-8.75 -6.26,-9.28 -1.05,-0.13 -2.44,-0.32 -3.12,-0.42l-1.22 -0.19 0.73 -0.32c2.27,-1 7.43,-1.24 8.36,-0.41l0 0zm-117.21 0.92c2.98,0.68 5.78,3.05 7.29,6.14 1.46,3.03 2.49,8.17 2.49,12.46l0 1.58 -1.27 -0.12c-0.71,-0.07 -1.85,-0.17 -2.53,-0.24l-1.25 -0.12 -0.14 -2.49c-0.35,-5.68 -2.61,-10.14 -5.98,-11.8 -1.21,-0.61 -1.65,-0.68 -3.7,-0.68 -2.15,0 -2.46,0.07 -3.95,0.81 -2.82,1.38 -4.7,4.04 -5.7,8.09 -0.66,2.58 -0.66,10.33 -0.03,12.67 1,3.68 2.51,6.53 4.49,8.43l1.17 1.13 -3.42 -0.1c-3.14,-0.08 -3.53,-0.12 -4.8,-0.76 -2.58,-1.26 -5.09,-4.95 -5.16,-7.58l-0.03 -1.24 1.66 -0.27c2.88,-0.46 2.73,-0.22 2.75,-4.8 0.03,-7.58 1.78,-12.92 5.66,-17.01 1.95,-2.07 4.14,-3.39 6.68,-4.02 1.58,-0.37 4.34,-0.42 5.77,-0.08l0 0zm109.65 1.07c-0.07,0.08 -0.63,0.49 -1.24,0.93 -3.02,2.15 -4.63,5.9 -4.95,11.48 -0.24,4.22 0.47,6.73 2.44,8.7 0.68,0.71 0.85,0.98 0.51,0.88 -0.26,-0.08 -1.02,-0.27 -1.7,-0.44 -2.98,-0.71 -4.61,-2 -5.44,-4.27 -1.12,-3.07 -0.9,-3.99 0.88,-3.99 1.85,0 1.95,-0.1 2.12,-2.15 0.46,-5.8 2.05,-9.36 4.73,-10.77 0.75,-0.41 2.99,-0.71 2.65,-0.37zm5.17 1.1c2,1.02 2.93,3.54 2.93,7.95 0,5.97 -2.66,11.99 -5.73,13.01 -1.27,0.42 -2.83,0.12 -4.19,-0.8 -1.49,-1 -2.81,-3.44 -3.24,-5.97 -0.25,-1.47 -0.22,-2.17 0.12,-4.32 0.8,-5.09 2.34,-8.16 4.87,-9.65 1.54,-0.9 3.73,-0.98 5.24,-0.22l0 0zm-117.72 3.8c2.68,0.81 4.98,3.88 6.12,8.27 0.61,2.26 0.71,6.97 0.22,10.23 -1.1,7.58 -3.75,11.14 -8.41,11.19 -2.14,0.02 -3.68,-0.71 -5.33,-2.56 -2.49,-2.75 -3.56,-6.31 -3.73,-12.16 -0.17,-5.8 0.53,-9.34 2.43,-12.09 1.9,-2.75 5.32,-3.88 8.7,-2.88l0 0zm-68 11.92c5.66,0.71 15.68,1.34 27.84,1.73l5.04 0.15 0.08 2.85c0.05,1.56 0,2.88 -0.1,2.95 -0.07,0.07 -4.63,0.15 -10.12,0.2 -12.79,0.09 -17.35,-0.27 -22.91,-1.83 -2.46,-0.69 -2.95,-1.05 -3.16,-2.34 -0.15,-1.03 0.12,-4.07 0.39,-4.07 0.09,0 1.41,0.17 2.94,0.36l0 0zm3.22 7.9c2.51,0.44 5.78,0.73 13.65,1.19l2.85 0.17 -0.58 1.44c-0.71,1.73 -1.64,2.76 -2.78,3.07 -1.15,0.32 -6.05,0.32 -8.07,0 -2.92,-0.46 -4.48,-1.12 -5.68,-2.41 -1.17,-1.24 -2.7,-3.92 -2.27,-3.92 0.05,0 1.35,0.22 2.88,0.46l0 0zm50.53 -85.74c-9.92,0.63 -14.53,1.02 -17.55,1.46 -1.88,0.27 -3.54,0.53 -3.68,0.58 -0.61,0.2 -0.59,6.05 0.02,6.66 0.08,0.07 0.37,0 0.69,-0.15 0.29,-0.15 3.21,-0.49 6.5,-0.78 8.02,-0.68 19.01,-1.71 19.7,-1.85 0.48,-0.1 0.53,-0.24 0.56,-1.88 0,-0.95 0.09,-2.34 0.19,-3.05l0.17 -1.26 -1.83 0.02c-1.02,0.03 -3.16,0.12 -4.77,0.24l0 0.01zm5.48 2.63c0,1.22 -0.1,2.24 -0.19,2.32 -0.13,0.07 -5.37,0.56 -11.66,1.12 -6.28,0.53 -12.06,1.04 -12.82,1.12l-1.41 0.14 0 -2.31 0 -2.32 0.93 -0.14c2.43,-0.39 7.65,-0.91 14.06,-1.34 3.9,-0.3 7.55,-0.54 8.16,-0.59 0.61,-0.05 1.51,-0.1 2.03,-0.12l0.9 -0.05 0 2.17 0 0zm-51.91 43.41c-4.93,0.34 -5.61,0.48 -5.85,1.09 -0.83,2.17 -0.88,11.8 -0.12,17.55 0.63,4.51 1.46,5.73 3.94,5.73 0.64,0.17 4.34,0.36 6.65,0.74 11.99,1.1 16.06,1.1l4.22 0 0.41 -1.41c1.39,-4.88 0.98,-13.87 -0.99,-20.62 -0.81,-2.85 -1.27,-3.93 -1.54,-3.66 -0.12,0.12 -1.34,0.15 -2.73,0.08 -4.53,-0.3 -15.14,-0.42 -17.74,-0.22zm19.28 1.12l1.12 0.14 0.41 1.46c0.37,1.32 1.37,6.68 1.37,7.34 0,0.27 -26.37,0.1 -27.11,-0.19 -0.39,-0.15 -0.43,-0.61 -0.43,-4.29 0,-3.15 0.07,-4.17 0.31,-4.27 0.17,-0.05 1.34,-0.22 2.61,-0.34 2.39,-0.22 19.72,-0.1 21.72,0.15l0 0zm-12.7 10.26c2.6,0.12 7.16,0.19 10.11,0.19 4.97,0 5.71,0.08 5.73,0.64 0,0.39 -5.83,0.48 -14.19,0.24 -4.99,-0.17 -10.06,-0.32 -11.28,-0.34 -2.12,-0.05 -2.19,-0.08 -2.27,-0.63l-0.09 -0.59 3.63 0.15c1.97,0.09 5.75,0.24 8.36,0.34zm6.33 2.22l9.63 0.17 0 4.38c0,3.58 -0.1,4.61 -0.44,5.66l-0.44 1.26 -2.12 -0.12c-1.17,-0.05 -4.8,-0.22 -8.06,-0.36 -6.19,-0.25 -8.46,-0.47 -12.04,-1.1 -3.37,-0.61 -4.19,-1.66 -4.44,-5.65 -0.07,-1.17 -0.19,-2.68 -0.24,-3.34l-0.12 -1.22 4.34 0.07c2.36,0.05 8.65,0.15 13.94,0.25l-0.01 0zm-29.9 -4.17c-0.68,0.12 -0.68,0.24 -0.1,0.75 0.34,0.32 0.49,0.88 0.59,2.17 0.12,1.64 0.09,1.78 -0.32,1.78 -0.24,0 -0.51,0.1 -0.61,0.22 -0.17,0.29 1.27,0.59 3.05,0.61 2.26,0.03 6.5,-0.17 5.77,-0.27 -0.9,-0.14 -1.09,-0.63 -1.07,-2.82l0.03 -1.88 0.8 0c1.27,0 0.93,-0.41 -0.46,-0.59 -1.42,-0.14 -6.8,-0.14 -7.68,0.03l0 0zm5.9 1.34c0.22,0.92 0.56,3.24 0.49,3.31 -0.05,0.05 -0.88,0.15 -1.88,0.22 -1.66,0.12 -1.85,0.1 -2.49,-0.46 -0.66,-0.56 -0.68,-0.63 -0.51,-2.1l0.17 -1.51 2.05 0c1.9,0 2.05,0.03 2.17,0.54zm36.68 0.46c0,0.12 0.19,0.22 0.46,0.22 0.83,0 1,0.56 0.95,2.9 -0.07,1.93 -0.12,2.22 -0.49,2.22 -0.24,0.1 -0.44,0.24 0,0.32 10.48,0.32 10.97,0 0.27,-0.17 0.2,-0.24 -0.39,-0.24 -1.17,0 -1.36,-0.42 -1.17,-2.56 0.17,-1.8 0.2,-1.85 0.88,-2 0.85,-0.17 1.1,-0.49 0.51,-0.66 -0.8,-0.24 -11.28,-0.36 -11.28,-0.12l0 0zm8.16 3.02l0 1.95 -0.85 0.08c-0.46,0.05 -1.66,0.02 -2.61,-0.08l-1.78 -0.17 -0.24 -0.87c-0.29,-1.05 -0.32,-2.56 -0.05,-2.83 0.1,-0.1 1.39,-0.15 2.85,-0.1l2.68 0.08 0 1.94 0 0zm141.48 6c-1.7,0.68 -2.85,2.75 -3.29,5.99 -0.36,2.78 0.95,5.68 2.61,5.68 2.05,0 3.97,-2.34 4.83,-5.82 0.36,-1.54 0.22,-3.78 -0.35,-4.83 -0.56,-1.12 -2.34,-1.6 -3.8,-1.02l0 0zm2.59 1.22c1.43,1.19 0.56,6.77 -1.34,8.63 -0.91,0.85 -2.32,0.8 -2.98,-0.13 -1.61,-2.17 -0.68,-7.14 1.56,-8.55 0.83,-0.51 2.1,-0.49 2.76,0.05l0 0zm-119.33 4.31c-0.98,0.54 -2.24,2.46 -2.83,4.32 -0.22,0.68 -0.46,2.48 -0.51,4.07 -0.12,2.41 -0.05,3.09 0.39,4.5 1.54,5.07 5.26,5.98 7.12,1.69 0.43,-1 0.56,-1.86 0.65,-4.32 0.18,-4.82 -0.73,-8.36 -2.53,-9.97 -1,-0.85 -1.17,-0.88 -2.29,-0.29l0 0zm2.27 1.27c1,0.8 1.44,2.44 1.56,6.12 0.14,3.68 -0.15,5.97 -0.95,7.7 -1.32,2.8 -3.32,2.04 -4.88,-1.86 -0.8,-2.02 -0.8,-6.48 0.03,-8.99 1,-3.05 2.65,-4.21 4.24,-2.97z"></path>
</g>
<div class="zoom-svg-zoom zoom-svg-zoom-in"> + </div>
<div class="zoom_200 zoom-svg-zoom zoom-svg-zoom-rst"> = </div>
<div class="zoom-svg-zoom zoom-svg-zoom-out"> - </div>
</svg>
这是TCPDF库代码的example_058.php文件:
//============================================================+
// File name : example_058.php
// Begin : 2010-04-22
// Last Update : 2013-05-14
//
// Description : Example 058 for TCPDF class
// SVG Image
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+
/**
* Creates an example PDF TEST document using TCPDF
* @package com.tecnick.tcpdf
* @abstract TCPDF - Example: SVG Image
* @author Nicola Asuni
* @since 2010-05-02
*/
// Include the main TCPDF library (search for installation path).
require_once('tcpdf_include.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION,PDF_UNIT,PDF_PAGE_FORMAT,true,'UTF-8',false);
//jexit(' testing1 ');
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example 058');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF,PDF,example,test,guide');
// set default header data
//$pdf->SetHeaderData(PDF_HEADER_LOGO,PDF_HEADER_LOGO_WIDTH,PDF_HEADER_TITLE.' 058',PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN,'',PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA,PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT,PDF_MARGIN_TOP,PDF_MARGIN_RIGHT);
//$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE,PDF_MARGIN_BOTTOM);
// set image scale factor
//$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
require_once(dirname(__FILE__).'/lang/eng.php');
$pdf->setLanguageArray($l);
}
// ---------------------------------------------------------
// set font
$pdf->SetFont('helvetica',10);
// remove default header
$pdf->setPrintHeader(false);
// add a page
$pdf->AddPage();
// get the current page break margin
$bMargin = $pdf->getBreakMargin();
// get current auto-page-break mode
$auto_page_break = $pdf->getAutoPageBreak();
// disable auto-page-break
$pdf->SetAutoPageBreak(false,0);
$pdf->Image($img_background='path/img.png',210,297,false,300,0);
$pdf->SetAutoPageBreak($auto_page_break,$bMargin);
$pdf->ImageSVG($file='path/svg_file.svg',$x=15,$y=30,$w='',$h='',$link='http://www.tcpdf.org',$align='',$palign='',$border='',$fitonpage=false);
$pdf->SetFont('helvetica',8);
$pdf->SetY(195);
$pdf->Write(0,$txt='','L',0);
// ---------------------------------------------------------
$dir ='/path/';
//Close and output PDF document
$pdf->Output($dir.'tcpdf_.pdf','F');
//============================================================+
// END OF FILE
//============================================================+
如果我打开浏览这个 SVG 文件,它看起来很完美,但输出 PDF 没有文本并且图像放错了位置。
请保存此 SVG 文件并浏览以查看所需的输出。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)