svg to pdf (with compressed size)

A discussion forum for JFreeSVG (a fast, lightweight, SVG generator for the Java platform).
Locked
plunavat
Posts: 29
Joined: Sun Jan 01, 2012 10:59 am
antibot: No, of course not.

svg to pdf (with compressed size)

Post by plunavat » Wed Jul 08, 2015 12:58 pm

Hello,

Could you please let me know as to how we can convert svg file to pdf in java (sample code). The pdf should be as small as possible in size

Also is it possible to convert dxf file to pdf. If Yes could you please help me out

Thanks in Advance

Thanks & Regards,
Pranav C Lunavat

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: svg to pdf (with compressed size)

Post by david.gilbert » Sat Jul 25, 2015 9:52 am

Hi Pranav,

JFreeSVG only creates SVG (by mapping Graphics2D API calls to the equivalent SVG output) but doesn't have the ability to parse and render SVG in graphical format (Apache Batik can do the latter). Conversion of SVG to PDF would require the latter (parsing and rendering)...so JFreeSVG won't help you.

If you are using JFreeSVG to create your output though, you can redirect the same Graphics2D API calls to OrsonPDF to create PDF files. From your question, though, I don't think that is your scenario.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked