PDFTron logo
 Home | Products | Services | Store | Downloads | Support | Company

PDF2SVG Frequently Asked Questions

What is SVG?

SVG (Scalable Vector Graphics) , developed by a working group of the World Wide Web Consortium (W3C), is an open-standard vector graphics format for describing two-dimensional graphics in XML (Extensible Markup Language).

SVG allows for three types of graphic objects: vector graphic shapes (e.g., paths consisting of straight lines and curves), images and text. Graphical objects can be grouped, styled, transformed and composited into previously rendered objects. The feature set includes nested transformations, clipping paths, alpha masks, filter effects and template objects. SVG drawings can be interactive and dynamic. Animations can be defined and triggered either declaratively (i.e., by embedding SVG animation elements in SVG content) or via scripting.

[ Back to top ]

Why are some characters missing in SVG?

This is one of the limitations of the evaluation version of PDF2SVG. The full version of PDF2SVG will convert all text.

[ Back to top ]

Why is SVG text using absolute positioning?

This is one of the limitations of the evaluation version of PDF2SVG. The full version of PDF2SVG does not use absolute positioning for each character unless font embedding is disabled.

[ Back to top ]

How do I create an SVG eBook?

In PDF2SVG versions prior to version 3.0, HTML eBook wrapper generation was part of the conversion process.

With PDF2SVG V3.0 and higher, there is added flexibility because the conversion process generates an XML summary document that can be transformed using XSLT (or another XML processor) to a customized HTML, or to another file format. For a simple example of how to generate an HTML eBook wrapper, see the XSLT folder in your PDF2SVG directory.

[ Back to top ]

Is it possible to customize the "look-and-feel" of the SVG eBook (HTML wrappers)?

Because PDF2SVG generates the XML document outline without any formatting elements, you have full control over the "look-and-feel" of the HTML wrapper. The transformation and formatting from XML to HTML can be specified using XSLT or another XML processor.

[ Back to top ]

Why are some fonts not accurate?

In order to preserve fonts, you need to enable font embedding. Conversions with font embedding will produce slightly larger SVG documents, but the text should display correctly on different systems.

In some cases the original font may neither be available on the system nor in the PDF. In this case, PDF and SVG viewers need to perform font substitution. Because SVG viewers use different font substitution procedures, the results may differ from one viewer to another. To avoid font substitution errors, make sure to create PDF documents with embedded fonts.

[ Back to top ]

How do I produce stand-alone SVG?/How do I embed raster images in SVG?

Some PDF documents use many small bitmaps to represent text or patterns. In this case, the converted SVG document will reference hundreds of external images. You may choose to embed these images within the SVG document using the ‘--embedimages’ or (‘-i’) option.

By embedding images it is possible to create self contained SVG files (i.e. files without any references to external resources). Although it is sometimes desirable to create self contained files, this option can result in files that are slower to render in some viewers. The files with embedded images may also be slower to download over the Net, and because images can’t be shared among different pages the total file size for the entire document may increase.

[ Back to top ]

Why is a white space separating neighboring picture elements?

In some cases, SVG viewers that support anti-aliased rendering produce line/space artifacts at neighboring picture elements (e.g. for image tiles or polygons sharing common edges).

These artifacts are not a byproduct of PDF2SVG conversion, but are produced due to anti-aliased rendering in the SVG viewer. To eliminate anti-aliasing artifacts you can try to disable 'high-quality' rendering option in your SVG viewer.

[ Back to top ]

Can I integrate PDF2SVG with my client/server application?

PDF2SVG has a simple-to-use API that can be easily integrated into third-party client and server-based applications. PDF2SVG is available as a .NET component or as a cross-platform C++ library. For more information on licensing the PDF2SVG SDK, please contact a PDFTron representative at info@pdftron.com.

[ Back to top ]

Convert PDF to SVG
 Product Info 
 User Manual 
 Example Files 
 F.A.Q. 
 Get the Demo! 
 Buy Now! 

SVG Viewers:

SVG Links: