Skip to content

Release 4.3.0

Latest

Choose a tag to compare

@onizet onizet released this 27 Nov 22:04
· 1 commit to master since this release
38a3cc6

This release is a significant milestone which offers extensibility capabilities.
The v1.0.0 of CssInliner was built as an inheritance model but this model move extensions in concurrence.
You can read more about those new capabilities: Transformers, ParserConfigurators and NodeProcessors in the documentation.

Some new commodities methods:

  • New WordDocumentFactory.Create(orientation, paperSize) helper.
  • New WordDocumentFactory.AddPage(orientation, paperSize) helper.
  • New WordDocumentFactory.AddPageBreak() helper.
  • New LoadDocumentAsync(html) which allow parsing once and converting multiple times.

Bug fixes:

  • Image size expressed in percentage (max-width) consider the current page width (orientation and different paper size than A4).
  • Image widths are automatically constrained to prevent overflow of the page.
  • Fix SVG appended to the body rather than in the footer/header.

[BREAKING CHANGE]

  • Remove the non-standard attribute page-orientation on the body to change the orientation. Use AddPage() instead.
  • Stop mutating the HttpClient in DefaultWebRequest.
  • Remove ILogger from DefaultWebRequest which removes one extra package dependency.
  • Prefer converter.UseCssInliner() rather than creating a new instance of CssStyleHtmlConverter.