Skip to content

pdfHTML 3.0.3

Compare
Choose a tag to compare
@ars18wrw ars18wrw released this 14 Jan 13:21
· 456 commits to develop since this release
3.0.3

This release of pdfHTML brings many improvements for SVG processing.
We are introducing the <pattern> element which is used to define a graphics object that can be "tiled" to cover an area, and the support of SVG defined in HTML. Previously when converting HTML code to PDF we supported either Base64 encoded images or images given by URL. Now, pdfHTML supports SVG images as direct input with the data:image/svg+xml notation.

Besides this, font-relative units for the font-size property in a text element are now supported by pdfHTML 3.0.3 too.

While we're on the subject, we added the support of word-wrap and word-break properties in CSS as well as target-counters and target-counter functions. These functions are crucial for generation of cross-references (widely used for a table of contents) within HTML documents.

Note: Java 7 support was deprecated as of the 3.0.2 release, and so from this release we’re targeting Java 8

New Features

  • SVG: Support <pattern> element
  • Support generating cross-references
  • Supporting SVG in data:image/svg+xml notation
  • Support word-wrap and word-break properties

Improvements

  • SVG: add support of font-relative units for the font-size property in a text element

Bugs

  • Fix body background size
  • Fix stroke-width for <use> tags in SVG
  • Page-break-inside: avoid not being taken into account for floating DIVs