Skip to content

Releases: kryops/pdfmake-html-renderer

v0.4.0 - Svelte 5

12 Apr 10:33

Choose a tag to compare

v0.4.0 - Svelte 5 Pre-release
Pre-release
  • [BREAKING] Updated to Svelte 5
    • The global build was replaced with a /standalone export, which is now also the preferred way to integrate into other frameworks
    • The server-side rendering API was adapted following Svelte's changes
    • See the /examples folder for updated examples

Published to npm as pdfmake-html-renderer@next for now.

v0.3.3

17 Mar 16:28

Choose a tag to compare

  • Added support for style extends
  • Added support for verticalAlignment on table cells
  • Added partial support for snakingColumns in columns
  • Fixed invalid table layout styles for server-side rendering
  • Fixed styling issues around 0, undefined and null values
  • Fixed rendering SVG images without xmlns attribute

v0.3.2

31 Jan 13:20

Choose a tag to compare

  • Added support for section elements
  • Added support for wordBreak: 'break-all' (#9)
  • Added support for markerColor in list items
  • Added support for SVGElement values in svg elements (#10)
  • Added support for ToC hideEmpty, sortBy, sortLocale
  • Added support for decorationThickness
  • Fixed invalid HTML nesting for server-side rendering leading to incorrect styles

v0.3.1

25 Aug 08:02

Choose a tag to compare

  • Fixed canvas element not displayed if its height or width is based on the line width only (#5)

v0.3.0

04 Feb 21:15

Choose a tag to compare

  • [MAYBE BREAKING] Switched to @sveltejs/package and conditional package exports
  • Added support for decoration arrays
  • Added support for QR code padding

v0.2.0

04 Oct 09:10

Choose a tag to compare

  • [MAYBE BREAKING] Updated to Svelte 4

v0.1.4

03 Dec 16:31

Choose a tag to compare

  • Fixed publishing of the Node.js bundle
  • Fixed usage within Svelte projects by including the sources into the published package

v0.1.3

03 Dec 16:30

Choose a tag to compare

Features

  • Added support inline style objects in style reference arrays
  • Added support for complex image definition objects
  • Added support for single-side margins (e.g. marginLeft)
  • Added support for preserveTrailingSpaces
  • Added support for new pageBreak values ...Odd / ...Even
  • Added support for multiple ToCs
  • Added support for lineJoin and strokeOpacity on canvas elements
  • Made renderer more resilient to avoid crashes for invalid content

Bug Fixes

  • Fixed rendering differences between strings/array and text/stack nodes
  • Fixed negative margins
  • Fixed positive margin affecting the background
  • Fixed background for lists, columns, and in defaultStyle
  • Fixed behaviour around spaces and preserveLeadingSpaces
  • Fixed inheritance for leadingIndent, fillColor/fillOpacity, columnGap, and noWrap
  • Fixed applying anchor styles in text references
  • Fixed noWrap in table cell with fixed width
  • Fixed edge cases around table borders
  • Fixed pageOrientation if the page width is larger than its height
  • Fixed printing undefined as watermark text
  • Fixed custom ordered list item counter with non-decimal list type
  • Fixed rendering a stroke for a filled canvas polyline
  • Fixed computing the height of a canvas ellipse without r2 set

Internal

  • Switched build tooling to Vite

v0.1.2

22 May 11:07

Choose a tag to compare

Features

  • Handle tiling pattern syntax (tiling patterns are ignored)

Bug Fixes

  • Fixed default watermark color and opacity
  • Fixed counter: 0 for ordered list items not being applied
  • Fixed type: 'none' for ordered lists wrongly rendering a separator
  • Fixed resetting the type when nesting lists
  • Fixed collapsing margins
  • Fixed ToC width

v0.1.1

26 May 15:24

Choose a tag to compare

Features

  • Added TypeScript typings for server-side rendering. To use them, switch from pdfmake-html-renderer/dist/server to pdfmake-html-renderer/server

Bug Fixes

  • Fixed link node styles being applied twice, leading to an additional space after the link
  • Fixed noWrap not being applied correctly
  • Fixed fillOpacity: 0 not being applied correctly
  • Fixed rendering of primitive numbers as content
  • Fixed page background being rendered in front of the content
  • Fixed spaces between text array elements
  • Fixed some cases for empty elements and elements containing only spaces
  • Fixed using unscoped CSS class names