Conversation issue

Mar 5, 2015 at 2:49 AM
Edited Mar 5, 2015 at 2:50 AM
Hi, I tried with SVG 1.7 to convert SVG to png but the converter isn't converting correctly can some one help me with issue. I have attached related input and output file. My Code is very simple if i am missing something let me know please also when i see the svg file in browser it shows correct out but in png there is different in the out put. var sDocument = SvgDocument.Open(imagePath).Draw().Save(pngPath,ImageFormat.Png); SVG is : <svg width="336.00002670288086" height="192.00001525878906" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 336.00002670288086 192.00001525878906"><g><title>background</title><rect fill="#FFFFFF" id="canvas_background" stroke-width="0" height="192.00002" width="336.00003" y="0" x="0"/></g><defs><path id="svg_17" d="m43.87638,105.8047q114.75001,-0.10001 229.50491,0.00999" stroke="#FFFFFF" fill="#FFFFFF"/><path id="svg_20" d="m99.21124,138.45409q113.44997,-0.10001 226.88751,0.00999" stroke="#179855" fill="#179855"/><path id="svg_24" d="m-254.99942,199.82597q197,-0.10001 394.02316,0.00998" stroke="#FFFFFF" fill="#FFFFFF"/></defs><g><title>Layer 1</title><g display="null" id="svg_4"><path id="svg_5" d="m161.20831,27.59978l0,9.30262l8.72319,8.72318l0,-18.0258m-0.24673,-0.56203l-8.47646,-8.47645l0,8.47645l8.47646,0zm-27.98488,10.28336l-0.03877,-0.28101l0,-19.26619l19.26619,0l0.26529,0l9.30092,9.26328l0,19.5472l-19.5472,0l-9.24641,-9.26328l-0.00002,0zm9.24641,0l-8.45172,0l8.45172,8.45172l0,-8.45172zm0.73175,-9.72133l-0.16972,0.16917l0,8.99014l9.13741,0l0,-9.15931l-8.96768,0zm-8.86647,-9.26384l8.70125,8.70126l9.1329,0l0,-8.70126l-17.83415,0zm8.13472,8.92944l-8.72372,-8.72317l0,18.21689l8.72319,0l0,-9.49372l0.00053,0zm9.88603,10.05574l-9.32402,0l0,8.70126l18.02582,0l-8.7018,-8.70126z" fill="#179855"/><path id="svg_6" d="m179.76299,27.59978l0,9.30262l-8.72371,8.72261l0,-18.02524m0.24727,-0.56203l8.47646,-8.47645l0,8.47645l-8.47646,0zm27.98488,10.28336l0.03821,-0.28101l0,-19.26619l-19.26563,0l-0.26527,0l-9.3015,9.26328l0,19.5472l19.54721,0l9.24698,-9.26328zm-9.24643,0l8.45174,0l-8.45174,8.45172l0,-8.45172zm-0.73175,-9.72133l0.16974,0.16917l0,8.99014l-9.13795,0l0,-9.15931l8.96822,0zm8.86594,-9.26384l-8.70125,8.70182l-9.1329,0l0,-8.70182l17.83415,0zm-8.13419,8.92944l8.72319,-8.72317l0,18.21689l-8.72319,0l0,-9.49372zm-9.88658,10.05574l9.32455,0l0,8.70126l-18.02638,0l8.70181,-8.70126l0.00002,0z" fill="#179855"/><path id="svg_7" d="m161.20383,65.56226l0,-9.30262l8.72319,-8.72318l0,18.0258m-0.24673,0.56203l-8.47646,8.47644l0,-8.47644l8.47646,0zm-27.98488,-10.28392l-0.03879,0.28102l0,19.2662l19.26619,0l0.26529,0l9.3015,-9.26328l0,-19.5472l-19.54721,0l-9.24698,9.26328l0,-0.00001l0,-0.00001zm9.24698,0l-8.45171,0l8.45171,-8.45172l0,8.45172zm0.7312,9.7219l-0.16971,-0.16972l0,-8.99015l9.13794,0l0,9.15988l-8.96823,0l0,-0.00001zm-8.86595,9.26328l8.70126,-8.70126l9.1329,0l0,8.70126l-17.83418,0l0.00002,0zm8.13475,-8.92944l-8.72318,8.72318l0,-18.2169l8.72318,0l0,9.49372zm9.886,-10.05574l-9.32396,0l0,-8.70182l18.02582,0l-8.70183,8.70182l-0.00003,0z" fill="#179855"/><path id="svg_8" d="m179.77086,65.56564l0,-9.30206l-8.72318,-8.72374l0,18.0258m0.24672,0.56203l8.47646,8.47646l0,-8.47646l-8.47646,0zm27.98488,-10.28336l0.03876,0.28101l0,19.26619l-19.26616,0l-0.26527,0l-9.30092,-9.26385l0,-19.5472l19.54718,0l9.24643,9.26384l-0.00002,0.00001zm-9.24698,0l8.45171,0l-8.45171,-8.45228l0,8.45228zm-0.7312,9.72133l0.16972,-0.16973l0,-8.98957l-9.13794,0l0,9.15987l8.96822,0l0,-0.00056l0,-0.00001zm8.86592,9.26385l-8.70126,-8.70182l-9.13287,0l0,8.70126l17.83415,0l0,0.00056l-0.00002,0zm-8.13472,-8.92943l8.72314,8.72317l0,-18.21688l-8.72314,0l0,9.49371l0,-0.00002l0,0.00002zm-9.88603,-10.05575l9.32455,0l0,-8.70125l-18.02638,0l8.70181,8.70125l0.00002,0z" fill="#179855"/></g><text transform="matrix(0.41869, 0, 0, 0.41869, 192.498, 16.1742)" font-style="normal" multiLine="true" font-weight="normal" xml:space="preserve" text-anchor="end" font-family="Hobo" font-size="24" id="svg_9" y="27.03181" x="308.4467" stroke-width="0" stroke="#179855" fill="#179855" display="null"><tspan y="27.03181" x="308.4467" id="svg_10">Your Name Here</tspan><tspan y="62.10624" x="308.4467" id="svg_11">Your Title Here</tspan></text><text transform="matrix(0.408342, 0, 0, 0.408342, 196.826, 17.9505)" font-style="normal" multiLine="true" font-weight="normal" xml:space="preserve" text-anchor="start" font-family="Hobo" font-size="24" id="svg_12" y="21.35292" x="-445.54161" stroke-width="0" stroke="#FFFFFF" fill="#FFFFFF" display="null"><tspan y="21.35292" x="-445.54161" id="svg_13">P: 000-000-0000</tspan><tspan y="55.60366" x="-445.54161" id="svg_14">C: 000-000-0000</tspan></text><text transform="matrix(0.761231, 0, 0, 0.761231, 53.2275, 27.1922)" font-style="normal" pathY="105.884" pathX="43.89172" multiLine="false" curveVal="0.04" font-weight="normal" xml:space="preserve" text-anchor="middle" font-family="Hobo" font-size="24" id="svg_15" y="0" x="0" stroke-width="0" stroke="#179855" fill="#179855" display="null"><textPath xlink:href="#svg_17" startOffset="48%" id="svg_16">Your Company Here</textPath></text><text transform="matrix(0.538717, 0, 0, 0.538717, 55.0687, 51.2146)" font-style="normal" pathY="138.43608" pathX="99.21342" multiLine="false" curveVal="0.04" font-weight="normal" xml:space="preserve" text-anchor="middle" font-family="Hobo" font-size="24" id="svg_18" y="0" x="0" stroke-width="0" stroke="#FFFFFF" fill="#179855" display="null"><textPath xlink:href="#svg_20" startOffset="48%" id="svg_19">Your Message Here</textPath></text><line stroke-width="2" id="svg_21" y2="136.91007" x2="259.17422" y1="136.91007" x1="81.50951" stroke="#179855" fill="none" display="null"/><text transform="matrix(0.441363, 0, 0, 0.441363, 211.16, 64.7641)" font-style="normal" pathY="199.82597" pathX="-254.99942" multiLine="true" curveVal="0" font-weight="normal" xml:space="preserve" text-anchor="middle" font-family="Hobo" font-size="24" id="svg_22" y="207.93646" x="-91.53616" stroke-width="0" stroke="#FFFFFF" fill="#179855" display="null"><tspan y="207.93646" x="-91.53616" id="svg_29">Street Address | City, State, Zip</tspan><tspan y="242.79352" x="-91.53616" id="svg_30">www.company.com</tspan></text></g><g><title>Border</title><rect fill="none" id="canvas_border" stroke-width="0" stroke="#FFFFFF" height="192.00002" width="336.00003" y="6" x="6"/></g></svg>