svg to pdf (with compressed size)

A discussion forum for JFreeSVG (a fast, lightweight, SVG generator for the Java platform).

svg to pdf (with compressed size)

Postby 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
plunavat
 
Posts: 26
Joined: Sun Jan 01, 2012 10:59 am

Re: svg to pdf (with compressed size)

Postby 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: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11654
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeSVG

Who is online

Users browsing this forum: No registered users and 1 guest