Releases: simonbengtsson/jsPDF-AutoTable
Releases · simonbengtsson/jsPDF-AutoTable
Release list
v2.3.0
- Methods for setting global options added:
jsPDF.autoTableSetDefaults({ ... }) - Method for setting document default options added:
doc.autoTableSetDefaults({ ... }) - Use
doc.autoTable.previous.finalYinstead ofdoc.autoTableEndPosY - Use
jsPDF.autoTableSetDefaults({addPageContent: function() {}})instead of thedoc.autoTableAddPageContentmethod.
v2.2.2
- Support for table borders with the
tableLineWidthandtableLineColoroptions. Note that they are options and not styles.
v2.2.0
- Support for all units
- Added option:
showHeader: 'everyPage'|'firstPage'|'never' - When using autoTableHtmlToJson the cell.raw property in hooks is now set to the html cell element
- Now splits row when to big to fit page.
- Fixed that cursor was not reset between new documents.
- Added support for vertical padding (use instead of the rowHeight style)
- Deprecated
doc.autoTableAddPagein favour ofdata.addPage()in hooks - Changed from elem.textContent to elem.innerText
v2.1.0
Before this release there were three different hooks to add content to pages: afterPageContent, beforePageContent and afterPageAdd. As they were basically doing the same thing it was confusing and they are now deprecated in favor of the addPageContent hook.
One new helper method autoTableAddPageContent is also added to make it easier to have the same page content added with multiple autotables in a document.
v2.0.36
Removes the confusing fillStyle style and derive it from lineWidth and fillColor instead. This enables a transperant table with no borders.
v2.0.35
v2.0.34
2.0.32
- Module bundler fixes and examples added (requirejs, browserify and webpack)
- Column index property added to be used in hooks like this
data.column.index
v2.0.28
Added helper method autoTableAddPage
v2.0.25
Now hides columns as well rows by default in the autoTableHtmlToJson. This feature can be disabled by passing true as the second parameter.