Skip to content

v1.19.0

Choose a tag to compare

@Moonwalker1307 Moonwalker1307 released this 22 Oct 18:52
· 420 commits to main since this release

Highlights

  • PdfPecker.Fluent is on nuget.org. A fluent C# API in the style of QuestPDF (pages, headers, footers, columns, rows, tables, text, images and barcodes in code) that writes HTML and CSS and renders it with PdfPecker. It is released with every PdfPecker release under the same version, and its only dependency is PdfPecker. dotnet add package PdfPecker.Fluent
  • Faster repeated conversions. Documents made from one template now reuse their fonts and font subsets, parsed CSS declaration blocks and the PDF writer's buffers between conversions: an invoice is about 10% faster with 8% fewer allocations, and documents with web fonts gain the most. Output is byte-identical.
  • New CSS: -pdfpecker-scale-to-fit: shrink scales a box's content down to fit its height, and data-sticky-pdf-first-header / data-sticky-pdf-first-footer give the first page a header or footer of its own (or none).
  • Layout fixes against Chrome: positioned boxes paint in document order, absolutely positioned children of flex and grid containers are placed as Chrome places them, vertical-align: top/bottom moves a span's whole content, <br> directly in a flex container keeps one anonymous item, and words that may break stay whole in a shrink-to-fit box.
  • PDF to image and HTML: faster lossless WebP encoding (same bytes), a lower default WebP effort that makes WebP output about 44% faster to encode and 1% larger (Quality now defaults to 85 for JPEG and 29 for WebP; set Quality = 85 for the old WebP bytes), masks finer than their image keep their resolution, Type 3 fonts at their own scale keep their words whole, and mesh-shading fills no longer allocate a page-sized layer each.
  • Hostile input: fuzzing fixes keep deeply nested columns, flex boxes, tables, backdrop filters and long runs of combining marks within bounded time and memory.

Output changes

No golden baseline changed. Output differs from 1.18.0 only for documents that hit the fixes: pages with overlapping positioned boxes, positioned children of flex and grid boxes, vertical-align: top or bottom spans holding other boxes and <br> in flex containers look different, and WebP images at the default quality have different bytes but the same pixels.

The manual for this version: https://pdfpecker.net/docs/v1.19.0/

Full Changelog: v1.18.0...v1.19.0