I7j Pdfhtml Versions Save

pdfHTML is an iText add-on for Java that allows you to easily convert HTML and CSS into standards compliant PDFs that are accessible, searchable and usable for indexing.

5.0.4

2 weeks ago

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

5.0.3

3 months ago

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

5.0.2

6 months ago

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

5.0.1

9 months ago

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

5.0.0

1 year ago

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

4.0.5

1 year ago

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

4.0.4

1 year ago

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

4.0.3

1 year ago

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

4.0.2

2 years ago

The release of pdfHTML 4.0.2 brings a couple of nice bugfixes. In previous versions, converting an HTML file which had an @font-face rule with an empty body would result in an NPE. Now, pdfHTML will simply ignore such declarations.

We've also fixed a CSS bug where a checkbox with 100% width and the display: block property would result in incorrect horizontal margins being applied during conversion.

Bugs

  • Empty @font-face rule no longer results in NPE
  • Fixed the display of checkboxes at 100% width

4.0.1

2 years ago

The pdfHTML 4.0.1 release is the first release of our HTML to PDF creation add-on in 2022.

It brings better processing of SVG format, thanks to improvements to the SVG module in the iText 7 Core library. SVG support remains a very important focus for us, as we are moving toward comprehensive support of the SVG standard in the iText7 Suite.

In this release, we have also incapsulated all resource handling functionality into the ResourceRetriever class. Now you can be sure that full control of Outbound connections is in your hands.

Improvements

  • SVG: Support default value for 'd" attribute
  • pdfHTML: web connection is opened outside ResourceRetriever

Bugs

  • SVG: Support of q/Q Operators inside BT/ET text block/object