|
3 rd Party PDF Support |
Posted by Red Beard on May-11-2011 02:12 |
|
Hello,
I want the ability to convert SVG charts to PDF. I have had limited success getting the SVG formatted files produced by Chart Director working with 3rd party libraries and 3rd party applications. Can you provide any recommendations for 3rd party libraries or 3rd party applications that can read a SVG formatted file produced by Chart Director and export to a different format?
I tried using Inkscape to convert a Chart Director's SVG file. The SVG file had noticeable flaws in its schema, how do I document these errors/bugs?
Great Product!
--Red Beard |
Re: 3 rd Party PDF Support |
Posted by Peter Kwan on May-12-2011 01:33 |
|
Hi Red,
For "the SVG file had noticeable flaws in its schema", do you mean that the SVG file generated by ChartDirector has noticeable flaws, or are you referring to the SVG generated by Inkscape?
If you think the SVG file had noticeable flaws, would you mind to inform me which are the faults, or provide an example?
From our experience, there is no program that correctly read and draw SVG. All programs we know of can only support a subset of SVG. This includes Inkscape, which means there are certain correct SVG that Inkscape cannot handle.
Because different programs support a different subset of SVG, it is not practical for us to generate SVG that works around all the limitations of all the programs. ChartDirector currently outputs SVG that works around the limitations of various browsers, so the SVG should be viewable by the browsers.
So one method to convert SVG to PDF is to use a browser to open the SVG, then "print" to PDF (eg. using the Adobe distiller which is a printer driver that outputs PDF instead of actually printing to a physical printer).
For Inkscape, we know of at least one issue involving fonts. See the following link on a method for the work around:
http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1295968787#N1295976846
We have also done a preliminary test with the svg2emf (http://code.google.com/p/svg2emf). We found that (after working arouind some bugs in the svg2emf) it can convert the SVG generated by ChartDirector to EMF if it is possible at all (EMF does not support transparency, so any charts with transparency is not convertible to EMF). As the svg2emf is based on the open source batik and FreeHEP VectorGraphics, I suspect these libraries can read the SVG produced by ChartDirector correctly.
Hope this can help.
Regards
Peter Kwan |
|