Forum How do I...?

SVG path drawing problem

anilnair
Hi,
SVG path drawn by PrinceXML 8.1 is thickened and oversized.
The same path drawn slightly oversized but positioned incorrectly by PrinceXML 9.0
Attaching the source HTML file and both PDF files. Please guide.

  1. prince8.pdf167.6 kB
  2. prince9.pdf167.7 kB
  3. princesample.html518.5 kB
mikeday
This is because the SVG element has a width attribute specifying a width of 512px, then in the CSS there is a width property specifying 100% of the parent container, which is 825px. Then the line inside the SVG itself actually goes outside the specified width, so it's a bit complicated. A quick workaround is to change the width attribute on the SVG to be 825px instead of 512px.