Forum Bugs

SVG graphics with fills

henning
Hi,

It seems that PrinceXML ignores fills in SVG graphics. See, for example, the attached graphic and the resulting PDF file. I'm using Prince 8.1 rev. 3 on Windows and Solaris.

Thanks,

Henning
  1. fg00767a.pdf30.5 kB
  2. fg00767a.zip14.8 kB
mikeday
What is the file supposed to look like? The Prince PDF output looks similar to how the SVG is rendered in Firefox, and it does not seem to contain any fills that are not white (#FFFFFF).
henning
Here is a screenshot of what I see: SVG (left) and PDF (right).

The SVG contains several polygons that are filled with a pattern:

	
<g>
<pattern id="SVGID_1_" xlink:href="#Diagonal_Lines" patternTransform="matrix(1.25 0 0 1.25 1643.812 1749.8818)">
</pattern>
<polygon i:knockout="Off" fill="url(#SVGID_1_)" stroke="#000000" stroke-width="0.3" stroke-miterlimit="10" points="    209.93,361.012 209.93,355.414 219.18,355.414 219.18,359.164 234.492,359.164 234.555,355.414 243.93,355.414 243.93,361.012"/>
</g>


Thanks,

Henning
  1. screenshot.png79.5 kB
    Screenshot
mikeday
Oops, I didn't notice the diagonal lines, thanks for your patience. :)

Perhaps this is due to the pattern being referenced indirectly through a href, ie. the pattern refers to another pattern. We will investigate this issue.
mikeday
Okay we have fixed this issue and will release it shortly as Prince 8.1 rev 4. However, the diagonal lines pattern fills the H shape entirely, not leaving gaps. This is consistent with how Inkscape renders the SVG file, so it may be that Firefox has a different unrelated bug causing the gaps in the pattern.
henning
You are correct, there shouldn't be any gaps, so Firefox must have a different bug. Thanks for fixing this so quickly!

Henning
mikeday
Prince 8.1 rev 4 is now available for download, and includes the fix for this issue. Thanks again for letting us know.