Open xnike opened 5 years ago
@xnike, the way to achieve this is to use apache batik library to convert SVG to PNG and replace the svg links to the generated PNG image.
This should be done in a custom link resolver for image links to SVG files and replace them to the location of the generated and cached PNG file.
Sample custom link resolver can be used as a starting point.
I will consider adding an extension to handle this after Java 7 support is dropped from the library.
Hi, SVG image is not supported by PdfConverterExtension
As I see openhtmltopdf supports setting SVGDrawer and rendering SVG files. It'll be great if PdfConverterExtension will have this option enabled by default or somehow configurable.