-
Added the
unbreakableOverflowoption ('allowBreak'by default or'error') and explicit errors for content that cannot fit below repeating headersExample:
pdfmake.createPdf(docDefinition, { unbreakableOverflow: 'error' });
Omit the option or use
{ unbreakableOverflow: 'allowBreak' }to allow oversized blocks to split across pages when possible. -
Reduced PDF size by deduplicating identical base64 and binary images
-
Invalid or missing images embedded in SVG now throw an error instead of being silently skipped
-
Replaced the unmaintained
svg-to-pdfkitdependency and local patches with the maintained@pdfmake/svg-to-pdfkitfork -
Updated pdfkit to 0.21.0
-
Updated linebreak to 2.0.0
-
Fixed missing content in oversized unbreakable blocks, table rows and row spans by retrying layout with page breaks enabled (see option
unbreakableOverflow) -
Fixed absolutely positioned content inside unbreakable blocks and table rows being shifted by the fragment's position
-
Fixed incorrect table borders caused by page breaks in long backgrounds
-
Fixed incorrect wrapping and missing absolutely positioned text inside unbreakable blocks and table rows
-
Fixed incorrect vertical alignment of table cells after layout is recalculated by
pageBreakBefore -
Fixed infinite layout loops and disappearing backgrounds when using
pageBreakBefore -
Fixed backgrounds of nested table cells not being moved with the content of table cells with
verticalAlignmentset tomiddleorbottom -
Fixed supplementary Unicode characters being split into invalid UTF-16 surrogates with
wordBreak: 'break-all'and when wrapping text wider than the available space -
Fixed CRLF line endings producing extra line breaks and pages with
wordBreak: 'break-all' -
Fixed missing
characterSpacingbetween inline fragments -
Fixed text lines fitting exactly within
maxHeightbeing omitted andmaxHeight: 0being treated as unlimited -
Fixed
beforeOdd,beforeEven,afterOddandafterEvenpage breaks selecting the opposite page parity -
Fixed reused table cells and SVG nodes retaining inherited fill styles and fonts from a previous context
-
Fixed Buffer attachments in static document and section headers and footers causing PDF generation to fail
-
Fixed reused canvas backgrounds accumulating coordinate offsets across pages and layout passes
-
Fixed list indentation, container margins and available text width being lost across snaking columns and pages
-
Fixed percentage column widths retaining sizes from a previous layout context in tables and columns
-
Fixed repeated table headers keeping their original column position when snaking columns continue on a new page
-
Fixed ancestor table headers being repeated inside nested snaking columns
-
Fixed reused table cells changing the vertical alignment of an earlier occurrence
-
Fixed vertical alignment of row spans and cells whose content or bottom margin crosses a page boundary
-
Fixed unnecessary pages before oversized unbreakable content and incorrect cell fill order with QR or table backgrounds
-
Fixed long backgrounds suppressing repeated table headers in the document body
-
Fixed page breaks in absolutely or relatively positioned cell content creating false table borders
-
Fixed oversized unbreakable children of absolutely or relatively positioned parents starting on the wrong page
-
Fixed positioned content using its parent's snaking columns and changing the position of following content
-
Fixed vertical table border colors depending on the total number of rows, using the opposite side of a row span, or losing the preceding row span's border color priority