Mostly minor changes but bumping major version due to old deprecation removals and upgrade to jsPDF 3.0 (that removes support for internet explorer).
- Jspdf 3.0 (removes support for internet explorer)
- You can now import autoTable with a named import
import { autoTable } from ‘jspdf-autotable’)
. The previously exported autoTable type is now exported asautoTableInstanceType
instead. - Removed long time deprecations
- Removed support for all old options and styles that was soft removed and deprecated in v3.0
- Removed old ways to get information of the last autoTable drawn:
doc.previousAutoTable
,doc.autoTable.previous
anddoc.autoTableEndPosY
. Now you should usedoc.lastAutoTable
. - Removed
Table#pageCount
field. You should now useTable#pageNumber
. - Removed old column/body way of calling autoTable
doc.autoTable(columns, body, options)
. You should now useautoTable(doc, options)
ordoc.autoTable(options)
. - Removed
doc.autoTableAddPageContent
. You should now usejsPDF.autoTableSetDefaults({didDrawPage: () => {}})
- Removed
doc.autoTableAddPage()
. You should now usedoc.addPage()
.