Forum Bugs

SVG stroke-dasharray'ed circles

joelmeador
Prince 11.1

Got a couple of interesting things with SVGs today. It seems like stroke-dasharray and rotation doesn't work the same in browsers and Prince. I am uploading two examples. One is with CSS rotation and one is with SVG attribute rotation. Opening those in browser and generating via prince will yield different results.

Some screenshots, with PDF on right and browser on left:

CSS rotation:
CSS rotation.png


SVG property rotation:
SVG property rotation.png

Try DocRaptor - PrinceXML web service and official PrinceXML partner

  1. CSS rotation.png64.5 kB
  2. SVG property rotation.png51.8 kB
  3. svg-rotator-css.html1.1 kB
  4. svg-rotator-svg.html1.1 kB
mikeday
Thanks, we'll investigate this.
mikeday
This is now fixed in the latest build. Note that CSS transforms aren't supported on SVG elements yet, so the CSS rotation won't apply.