Skip to content

Releases: itext/itext-pdfhtml-java

pdfHTML 6.0.0

18 Nov 09:57
6.0.0
Compare
Choose a tag to compare

pdfHTML is an iText Core add-on for creating PDF from HTML/XML (and associated CSS).

This release includes a bug fix relating to repeating table headers. When using FlexContainerRendererDivRendererTableRenderer hierarchies, it could result in an incorrect size calculation. This is now resolved.

In addition, the version number has been bumped for compatibility with iText Core 9.0 and License Key Library 4.2.0.

Bug Fixes

  • Repeating table header in HTML causes incorrect size calculation when overflowing to next page

pdfHTML 5.0.5

24 Jul 11:24
5.0.5
Compare
Choose a tag to compare

pdfHTML is an iText Core add-on for creating PDF from HTML/XML (and associated CSS).

As noted in the Core release notes, this release of pdfHTML now supports the CSS Grid Layout Module allowing highly-flexible grid-based layouts. With Grid Layout supporting two-dimensional layouts of both rows and columns, this gives you additional capabilities when designing templates for PDF creation with pdfHTML.

CSS Grid Layout is beginning to see wider adoption, and is supported by all current major web browsers. A number of users expressed a desire for Grid layout support in iText and pdfHTML and we were happy to oblige.

The majority of Grid features are fully supported in pdfHTML 5.0,5, with only the inline-grid values of the display property, and subgrid values of the grid-template-columns and grid-template-rows properties not currently implemented. Since data shows these properties are not widely used, they are not currently a priority. However, if you see a pressing need for pdfHTML to support them, please let us know!

In other news, a bug with Azure resource loading on .NET 6.0 was fixed in this release.

New Features

  • CSS Grid Layout Module support

pdfHTML 5.0.4

30 Apr 09:37
5.0.4
Compare
Choose a tag to compare

pdfHTML is an iText Core add-on to create PDF from HTML/XML (and associated CSS).

The main thing of note in this release is pdfHTML now allows more customization of bookmarks (known as outlines in the PDF specification) using the OutlineHandler component, along with improved out-of-the-box behavior.

In addition, we’ve fixed a bug where empty table rows may not be converted correctly in certain cases.

Improvements

  • More flexible and customizable outline handling

Bug Fixes

  • Empty initial rows in a table may not be correctly converted to layout

pdfHTML 5.0.3

07 Feb 14:31
5.0.3
Compare
Choose a tag to compare

pdfHTML is an iText Core add-on to create PDF from HTML/XML (and associated CSS).

As noted in the Core release notes, we’ve implemented checks and improvements during the creation of PDF/A and PDF/UA to make the creation of both archivable and accessible PDF documents easier. Using HTML as a source is a great way to create such documents, so pdfHTML users naturally benefit greatly from this addition.

We’ve also fixed some bugs with converting layout elements and an exception being thrown when emojis are present in HTML to PDF/A conversions.

Improvements

  • General improvements for PDF/A and PDF/A creation

Bug Fixes

  • IButton tag worker may throw NPE on convert from elements
  • Conversion from HTML properties to layout elements in html2pdf doesn't take into account PDFConformanceLevel
  • Converting HTML with emojis to PDF/A will cause an exception even when the emoji is included in the font's glyphs

pdfHTML 5.0.2

25 Oct 15:10
5.0.2
Compare
Choose a tag to compare

pdfHTML is an iText Core add-on to create PDF from HTML/XML (and associated CSS).

In this release, we've continued our work on pdfHTML's advanced multicolumn support by supporting the CSS break-inside, break-after, and break-before properties for column-count.

There's a significant improvement in the font selection algorithm for font families with several width classes, as pdfHTML will now consider all font names within a family, and choosing the best matching one.

Another addition to our flex container support is the support for vertical flex-direction pagination. For example, if you want to expand a flex container onto different pages if the content will not fit on a single page.

In other news, pdfHTML will now support SVG tags when using HtmlConverter#convertToElements, and there's a fix for the incorrect vertical alignment of inline-block elements in table cells.

New features

  • Column-count: support break-inside, break-after and break-before properties
  • Pagination for vertical flex-direction of flex container

Improvements

  • Consider all font family fields in font selection
  • Support of SVG tag when using HtmlConverter#convertToElements

Bug Fixes

  • Incorrect vertical alignment for inline-block elements in table cells

pdfHTML 5.0.1

02 Aug 15:09
5.0.1
Compare
Choose a tag to compare

For the pdfHTML 5.0.1 release we’ve focused on CSS improvements such as support for more flex-related properties. We’ve also introduced multi-column support to allow you to easily layout and render text in multiple columns, just like in newspapers. Currently implemented are column-count, column-height, column-width, column-style, and column-color, with support for more properties coming soon.

New features

  • Multi-column support

Improvements

  • Improved flex support

pdfHTML 5.0.0

10 May 12:44
5.0.0
Compare
Choose a tag to compare

pdfHTML is an iText Core add-on for Java to create PDF from HTML/XML (and associated CSS).

New for pdfHTML 5.0.0 is support for the text-decoration-color CSS property to affect the appearance of nested elements. As noted in the documentation, this property sets the color of text decorations added by the text-decoration-line property. Even though CSS does not provide a direct mechanism to specify a unique color for each line type, by using text-decoration-color you can achieve this effect.

New features

  • Support text-decoration-color CSS property to affect the appearance of nested elements

pdfHTML 4.0.5

16 Jan 09:52
4.0.5
Compare
Choose a tag to compare

pdfHTML is an iText 7 add-on for Java and .NET to create PDF from HTML (and associated CSS).

A new feature for pdfHTML 4.0.5 is support for the vertical-align CSS property for inline blocks. This property can be used to align inline-block elements vertically, for more details on its usage you can refer to this example.

In addition, we've made some improvements to flex rendering and performance, and general bug fixes.

New features

  • Support vertical-align CSS property for inline-blocks in HTML inline-context

Bug fixes

  • The data in the table goes beyond the page boundaries
  • Floats: inline-block is not wrapped to new line after 100%-width-float
  • Flex layout: exception and slow performance for customer files if flex support is enabled
  • The picture is cropped when wrapped in a figure tag
  • Fix inline-blocks wrapping when they have relative width set
  • Elements with display: inline-block and width: 100% are not wrapped on a new line
  • PDF fails to truncate when a DIV element with flex property is nested

pdfHTML 4.0.4

25 Oct 10:00
4.0.4
Compare
Choose a tag to compare

pdfHTML is an iText 7 add-on for Java and .NET to create PDF from HTML (and associated CSS).

The big news for this release is the addition of support for CSS4 device-cmyk colors. Until now pdfHTML only supported CSS RGB colors for direct conversion to PDF, although a workaround was possible by using convertToElements rather than convertToPdf. However, we decided to add initial support for device-cmyk following a request from a customer who wanted to make use of this functionality to optimize their workflow.

Note that this functionality is not available out of the box since device-cmyk is classed as an experimental feature in CSS, and only exists in CSS working drafts. To enable device-cmyk notation you'll need to change the validation rules with the CssDeclarationValidationMaster#setValidator before working with html2pdf. There are currently 2 validators: CssDefaultValidator – the default validator which uses the previous rules of CSS validation and CssDeviceCmykAwareValidator – which, as the name suggests does support this experimental feature.

New features

  • Support for device-cmyk

pdfHTML 4.0.3

05 Jul 08:33
4.0.3
Compare
Choose a tag to compare

A couple of very nice updates for pdfHTML this time round. There is a fix for the resolving of the display:none CSS style for flex children, and we’ve fixed an issue with ordered lists where a list symbol could be duplicated when content overflowed onto a second page, causing the symbol to overlap in the converted document.

In addition, the updates to SVG image sizes using exponent notation in Core should also prove useful in HTML conversions.

Bugs

  • Fix resolving of display:none css style for flex children
  • Fix ordered list symbol duplication