Click or drag to resize
Pdf Library for .NET

Version 26.4 Release Notes - SelectPdf Html To Pdf Converter

Moves the Chromium engine to Chromium 154, makes the output of the Chromium and Blink engines follow the page much more closely, and makes conversions with the modern engines faster.

New features
  • Chromium 154 - the Chromium engine runs on CEF / Chromium 154. A page that never finishes loading no longer hangs the conversion, the engine's own processes end with it, it opens no listening network sockets (no Windows Firewall prompt), a page that redirects itself in script is printed as the page it lands on, and plain URL conversions navigate straight to the target. The Blink engine stays on Chromium 148.

  • Pages end where the content ends - with the Chromium engine the last page is cut where the content stops, on documents of any length, with no trailing blank page. Controlled by ManagedContentTrimming and ManagedContentTrimmingMode on the converter and on PdfHtmlSection.

  • WebGL control - WebGlEnabled on the converter and on HtmlToImage (Chromium and Blink).

  • HtmlToImage.VisibleWebElementSelector captures the element a CSS selector matches, on the Chromium and Blink engines.

  • RenderPageOnTimeout is honored by the Chromium engine, so a page that exceeds MaxPageLoadTime can still be rendered. See Conversion Delay and Timeout.

  • Saving very large documents is much faster: building and saving is now linear in the number of PDF objects.

Behavior changes
  • WebGL is off by default on the Chromium and Blink engines, which also makes conversions faster. Pages whose content is WebGL (interactive maps, 3D charts) need WebGlEnabled = true.

  • WebPageFixedSize now truncates on Chromium and Blink. Earlier versions ignored it on these engines and converted the whole page. With WebPageFixedSize = true and a WebPageHeight, the content below that height is now left out. WebPageHeight on its own still only sets the browser viewport height.

  • Saving the same PdfDocument twice throws instead of writing a file with no pages. Save once - to a byte array if you need the document in more than one place.

  • Pages end where the content ends with the Chromium engine. Set ManagedContentTrimming = false for the previous page cutting.

  • LazyImagesLoadingDelay defaults to 50 ms (was 20 ms).

  • The Chromium engine files ship in Chromium-CEF-154.0.8037 (was Chromium-CEF-148.0.7778). The NuGet packages deploy it automatically; a build step that copies the engine folder itself needs the new name.

  • The tagging members (PdfTagType, TagType, Artifact, AlternateText, ActualText) are no longer part of this edition's public API. Tagged PDF is a feature of the full commercial library, so they had no effect here.

Fixes
  • Right-to-left pages are no longer shifted off the left edge with the Chromium engine.

  • A save that fails no longer leaves the output file locked.

  • The IntelliSense documentation no longer lists members that only the commercial library contains.

See Also