A good way to run PDF2SVG is directly from Java code as IDEs will usually list available methods. This guide is aimed at developers with knowledge of Java. If you do not know Java, we recommend using the online converter.
- You must download pdf2svg.jar
- Add pdf2svg.jar to your project libraries
There is a code example at the top of the Javadoc page for PDFtoSVGConverter which shows how to generate SVG.
How are the settings controlled?
Available settings and their values can be found in the Javadocs. The key classes are:
- SVGConversionOptions (General SVG Settings)
- ContentOptions (Settings available for the Content mode)
We now have our own functionality to decrypt encrypted pdfs but if you wanted to specify a certain Provider then you can still do so using -Dorg.jpedal.securityprovider. Remember to add the security provider to the classpath if needed e.g.