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
svg to pdf (with compressed size)
-
- 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)
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.
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program