Vector graphics support in PDFs

XMLWordPrintable

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? 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.

            Assignee:
            Unassigned
            Reporter:
            Mikko Virkkilä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: