-
Suggestion
-
Resolution: Answered
-
None
NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.
When generating PDFs it would be nice if there was some way to include vector graphics in the generated PDF. I've looked in to seeing if Flying Saucer (xhtmlrenderer) supports this and as it turns out they have an example of how this can be accomplished by use of <object>.
In flying saucer this would be accomplished by implementing a ReplacedElementFactory which captures objects of the type "image/svg+xml". The svg could be rendered to a context by an svg library like svgsalamander. The context would then be passed to itext which would render it to pdf.
There is a ReplacedElementFactory demo which uses svgsalamander to render onto a jpane in the xhtmlrenderer source repository.
- relates to
-
CONFCLOUD-20397 Vector graphics support in PDFs
- Closed