Skip to content

Releases: simonbengtsson/jsPDF-AutoTable

v3.0.13

05 Mar 12:20
Compare
Choose a tag to compare

Reduced distributed build size. No library changes.

v3.0.8

03 Feb 02:04
Compare
Choose a tag to compare

Improve row height calculation for tall rows, fixes #444

v3.0.7

02 Feb 22:24
Compare
Choose a tag to compare

Foot height improvements, fixes #434

v3.0.6

02 Feb 21:47
Compare
Choose a tag to compare

Add better support for br tags and line breaks (fixes #423)

v3.0.5

29 Jan 21:54
Compare
Choose a tag to compare

Fix for css styling #439 Thanks @RileyDavidson-Evans

v3.0.4

22 Jan 13:26
Compare
Choose a tag to compare

Fixes #424

v3.0.2

05 Jan 15:09
Compare
Choose a tag to compare

Added minCellWidth option.

v3.0.0

05 Jan 13:52
Compare
Choose a tag to compare

BREAKING

The hooks API has been simplified. Note that colspans and rowspans now is supported so you can use that instead of the old drawCell hack.

  • Removed hooks: createdCell, createdHeaderCell, drawHeaderCell, drawCell, drawRow, drawHeaderRow and addPageContent
  • Added hooks: didParseCell, willDrawCell, didDrawCell and didDrawPage

All other changes should be backwards compatible, but it's a rewrite of the plugin so file an issue if you encounter something that did not work as expected after upgrading.

Migrating

Migrating to version 3.0 should be rather painless as most changes are backwards compatible. Everything was pretty much rewritten however so open an issue if you encounter any problems!

The removed hooks can be replaced as follows:

  • drawCell, drawRow and similar → didDrawCell with potensial checks to only draw things if on the wanted section (head, body or foot)
  • createdCell → didParseCell
  • addPageContent → didDrawPage

Changelog

  • BREAKING: Old hooks with new ones (See above)
  • BREAKING: No longer supports 0.9.x of jsPDF
  • BREAKING: Now targets ES5 (no longer supports <=IE8)
  • Added native rowspan and colspan support
  • Added multiple header rows support
  • Added footer rows support
  • Added html initialization with html: string|HTMLTableElement. If set to string it should be a css selector pointing to a table element.
  • Added useCss: boolean for using some basic css styles when table initialized from html
  • Added includeHiddenHtml: boolean option
  • Added showFooter option (similar to showHeader)
  • Added footerStyles option (similar to headerStyles)
  • Added rowPageBreak option
  • Added text align justify (with the style halign: 'justify'
  • Added automatic startY when multiple tables are used
  • Changed initialization to doc.autoTable({head: ..., body: ... foot: ..., columns: ...})
  • Changed getting last autoTable instance from doc.autoTable.previous to doc.lastAutoTable
  • Changed default overflow method to linebreak (previously it was ellipsize)
  • Changed rowHeight style to cellHeight
  • Changed columnWidth style to cellWidth
  • Changed and simplified hooks to `didParseCell, willDrawCell, didDrawCell, didDrawPage
  • Deprecated the old initialization doc.autoTable(columns, data, options)
  • Deprecated autoTableHtmlToJson() in favour of new html option
  • Deprecated old way of getting previous autoTable instance doc.autoTable.previous

v3 RC 2

01 Dec 13:45
Compare
Choose a tag to compare
v3 RC 2 Pre-release
Pre-release

Compared to RC 1 this release has some fixes to colspan/rowspans and width calculations for linebreak columns.

v3 RC 1

28 Oct 14:22
Compare
Choose a tag to compare
v3 RC 1 Pre-release
Pre-release

Api and docs finalized for v3. Checkout the docs in the v3 branch