Problem loading PDF2SVG SVGZ samples: Encoding error

118 views
Skip to first unread message

Support

unread,
Nov 21, 2011, 6:53:45 PM11/21/11
to pdf...@googlegroups.com
Q: I am trying to demo PDFTron PDF to SVG library (http://www.pdftron.com/pdf2svg) for a client. I was looking at your sample code section and saw some examples but none of them worked. Here is what was generated when I clicked on the link to the direct SVG file.

This page contains the following errors:

error on line 1 at column 1: Encoding error

Below is a rendering of the page up to the first error.


If I clicked the HTML wrapper link, it gave me the viewer, but then this error in the bottom frame

------------

A: I suppose that the problem is that Safari does not support compressed SVG (SVGZ). You can download (http://www.pdftron.com/pdf2svg/downloads.html) up-to-date converter and test it on your own files.

Btw, by default PDF2SVG CLI will not compress SVG so converted files should work with Safari.

The samples also use deprecated Adobe SVG viewer, so you should probably use the demo app directly.
 
Reply all
Reply to author
Forward
0 new messages