Forum Bugs

Rendering of SVG graphics

henning
Hi,

PrinceXML does seem to have a problem with fills and hidden elements (display="none"). Please see the attached graphics and the PDF output.

We are using Prince 8.0.

Thanks,

Henning
  1. b.pdf28.0 kB
    PDF of SVG image B
  2. b.png801.7 kB
    screenshot of SVG image B
  3. svg.zip81.2 kB
    SVG images and PDF output
mikeday
Prince 8.1 will support "display: none" and "visibility: hidden" for SVG elements. We are just creating the release packages now. :)
henning
Thanks for releasing Prince 8.1! I just installed it. Unfortunately it fails to convert the SVG graphic that contains hidden layers (Prince 8.0 converts it but shows the hidden layers as explained above).

Here is the output from Prince 8.1:

$ /usr/local/bin/prince b.svg --media=print --output=b.pdf --debug
prince: debug: loading license: /usr/local/lib/prince/license/license.dat
prince: /usr/local/lib/prince/license/license.dat: warning: inapplicable license
prince: loading style sheet: /usr/local/lib/prince/style/fonts.css
prince: debug: loaded resource: /usr/local/lib/prince/style/fonts.css
prince: debug: loaded resource: type: no
prince: Loading document...
prince: loading XML input: b.svg
prince: debug: loaded document: b.svg
prince: debug: sniffed doctype: XML
prince: loading style sheet: /usr/local/lib/prince/style/xhtml-ns.css
prince: debug: loaded resource: /usr/local/lib/prince/style/xhtml-ns.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/common.css
prince: debug: loaded resource: /usr/local/lib/prince/style/common.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/hyph.css
prince: debug: loaded resource: /usr/local/lib/prince/style/hyph.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/mathml.css
prince: debug: loaded resource: /usr/local/lib/prince/style/mathml.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/svg.css
prince: debug: loaded resource: /usr/local/lib/prince/style/svg.css
prince: debug: loaded resource: type: no
prince: debug: prepack
prince: debug: font request: Helvetica
prince: debug: font scan: Times New Roman
prince: debug: font scan: Times New Roman, 36 matches
prince: debug: font scan: DejaVu Serif
prince: debug: font scan: DejaVu Serif, 0 matches
prince: debug: font scan: OpenSymbol
prince: debug: font scan: OpenSymbol, 0 matches
prince: debug: font scan: AR PL UMing CN
prince: debug: font scan: AR PL UMing CN, 0 matches
prince: debug: font scan: AR PL SungtiL GB
prince: debug: font scan: AR PL SungtiL GB, 0 matches
prince: debug: font scan: Lohit Hindi
prince: debug: font scan: Lohit Hindi, 0 matches
prince: debug: font scan: Ani
prince: debug: font scan: Ani, 0 matches
prince: debug: font scan: Mukti Narrow
prince: debug: font scan: Mukti Narrow, 0 matches
prince: debug: font scan: Lohit Punjabi
prince: debug: font scan: Lohit Punjabi, 0 matches
prince: debug: font scan: Lohit Gujarati
prince: debug: font scan: Lohit Gujarati, 0 matches
prince: debug: font scan: Lohit Tamil
prince: debug: font scan: Lohit Tamil, 0 matches
prince: debug: font scan: Lohit Telugu
prince: debug: font scan: Lohit Telugu, 0 matches
prince: debug: font scan: Lohit Kannada
prince: debug: font scan: Lohit Kannada, 0 matches
prince: debug: font scan: MalOtf
prince: debug: font scan: MalOtf, 0 matches
prince: debug: font scan: Lohit Oriya
prince: debug: font scan: Lohit Oriya, 0 matches
prince: loading font: data URL
prince: debug: loaded resource: data URL
prince: debug: loaded resource: type: yes(resource_type("", [], unknown, no))
prince: data URL: warning: unknown file format
prince: used font: Times New Roman, Regular

Mercury runtime: memory zone detstack#0 overflowed
PC at signal: 6561876 (642054)
This may have been caused by a stack overflow, due to unbounded recursion.


Greetings,

Henning
  1. b.zip19.7 kB
    SVG graphic
mikeday
Unfortunately it seems that there is a bug in the new support for the <clipPath> element, when it contains <use> elements. If the clipPath is commented out or if the elements that it uses are moved into it as children then the file should convert correctly. Hopefully we can fix this problem shortly.
mikeday
We have fixed this issue in Prince 8.1 rev 2, and updated packages are now available for Windows, MacOS X, and Ubuntu.
henning
Thanks for fixing this issue!

Henning