Skip to content

Releases: bpampuch/pdfmake

0.3.8

06 May 10:21

Choose a tag to compare

  • Added server-side method setLocalAccessPolicy() for defining a custom access policy for local file

    Example:

     pdfmake.setLocalAccessPolicy((path) => {
     	// check allowed local file path
     	return path.startsWith("fonts/");
     });
  • Improved URL Access Policy (setUrlAccessPolicy method); URLs are now validated even before each redirection in Node.js and after final redirection in browser (browsers do not support validation before redirection)

  • Fixed extra blank page when using headerRows, dontBreakRows and cell pageBreak together

  • Fixed rendering of an invalid color name - previously it used the last valid color; now it defaults to black

  • Fixed dontBreakRows rowSpan ending offset across pages

0.3.7

17 Mar 16:03

Choose a tag to compare

  • Updated pdfkit to 0.18.0

0.3.6

10 Mar 08:56

Choose a tag to compare

  • Added setUrlAccessPolicy() for defining a custom access policy for external URLs before download
    (addresses a potential server vulnerability CVE-2026-26801)

    Example:

     pdfmake.setUrlAccessPolicy((url) => {
     	// check allowed domain
     	return url.startsWith("https://example.com/");
     });

    For details see documentation

  • Added validation for image height and width values

0.3.5

22 Feb 07:26

Choose a tag to compare

  • Added snakingColumns property for columns to enable newspaper-like column flow
  • Added outlines / bookmarks for text node
    • outline - set to true for add to bookmarks
    • outlineText (optional) - set custom bookmark text, otherwise text from node
    • outlineExpanded (optional) - set to true for expanded/opened bookmark
    • outlineParentId (optional) - parent bookmark id
  • Added property outlines for ToC, which adds all items to outlines / bookmarks (any existing outline settings on texts are respected)

0.3.4

13 Feb 07:56

Choose a tag to compare

  • Added vertical alignment for table cells via verticalAlignment property, values: top (default), middle, bottom
  • Fixed margin inheritance when styles are extended multiple times

0.3.3

18 Jan 10:13

Choose a tag to compare

  • Added properties for ToC:
    • hideEmpty - set to true if you can hide an empty ToC
    • sortBy - 'page' (default) or 'title'
    • sortLocale - custom locale to sort by property sortBy
  • Added property decorationThickness for text to set width of the decoration line
  • Added inherited/extends styles, use property extends in style with style name or array of string with style names
  • Fixed margin override with 0 value
  • Fixed margin override from multiple styles
  • Fixed text decoration for superscript and subscript
  • Fixed svg-to-pdfkit - TypeError: t.classList.contains is not a function

0.3.2

11 Jan 12:12

Choose a tag to compare

  • Fixed non-working open() and print() methods in browser
  • Added SVG validation: width and height must be specified (in SVG string/element or svg node)
  • Added support for image scaling with only height defined
  • Added custom markerColor for each item of ul and ol

0.2.23

11 Jan 12:08

Choose a tag to compare

  • Added SVG validation: width and height must be specified (in SVG string/element or svg node)
  • Added support for image scaling with only height defined
  • Added custom markerColor for each item of ul and ol

0.3.1

07 Jan 09:17

Choose a tag to compare

  • Added auto page height for multiple pages (for section or after custom page break)
  • Added type validation for parameters in method createPdf
  • Added support SVGElement object for svg node (SVGElement object is available only in browser)
  • Updated svg-to-pdfkit library to the latest GitHub master commit
  • Fixed a bug in the write method where it did not wait for the file write operation to complete
  • Fixed SVG loading
  • Fixed rendering SVG without viewBox

0.2.22

07 Jan 09:12

Choose a tag to compare

  • Added object type validation for parameters in method createPdf and createPdfKitDocument
  • Added support SVGElement object for svg node (SVGElement object is available only in browser)
  • Fixed rendering SVG without viewBox