A new feature in this release is the introduction of support for <linearGradient> in SVG and linear-gradient() in CSS. This is a commonly used element in both CSS and SVG frameworks allowing for progressive transitions between colors in graphical objects. For those of you who are interested, we've produced a code sample demonstrating different implementations of <linearGradient> within our layout engine.

Besides this, we continue to improve our line-height property support that was added for pdfHTML 3.0.0 and added support for setting the background on HTML elements. Something that will continue to be improved (we'll keep you posted!)

Speaking of wider support, Shorthand properties can often improve your CSS code readability. As developers, there's no way, no how, that we'll stand in the way of code readability, so support for the text-decoration Shorthand is baked in too.

We've also improved pdfHTML's <div> Tag processing to better handle splitting. See the linked articles for examples demonstrating these improvements.

A number of bug fixes are also included. Head on down to the Changelog for more information.

Release Related Examples


New Features

  • Initial support of linearGradient in SVG and CSS

Improvements

  • Improve pdfHTML Div Tag processing to better handle splitting
  • Support CSS text-decoration shorthand properly

Bugs

  • Support background-image CSS property for text span element
  • Negative numbers in <input> elements are not shown
  • Apply the line-height property to span elements
  • Html2Pdf+Svg: <object> tag in HTML referring SVG with inner resource doesn't resolve resources correctly


eBooks

iText 7: Converting HTML to PDF with pdfHTML

Installation Instructions

Examples (latest ones)

FAQ (latest ones)

Chapter 7: Frequently Asked Questions about pdfHTML