taxtank-core 0.30.64 → 0.30.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +5 -5
- package/fesm2015/taxtank-core.mjs +4 -4
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +4 -4
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -16887,15 +16887,15 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
16887
16887
|
this.formatter = formatter;
|
|
16888
16888
|
}
|
|
16889
16889
|
export(dataTables, fileSettings) {
|
|
16890
|
-
const document = this.generate(dataTables, fileSettings
|
|
16890
|
+
const document = this.generate(dataTables, fileSettings);
|
|
16891
16891
|
document.save(`${fileSettings.filename}.pdf`);
|
|
16892
16892
|
}
|
|
16893
16893
|
/**
|
|
16894
16894
|
* Generate PDF file from provided list of data tables
|
|
16895
16895
|
*/
|
|
16896
|
-
generate(dataTables,
|
|
16897
|
-
const pdf = new JsPdf();
|
|
16898
|
-
this.setDocumentTitle(pdf, title);
|
|
16896
|
+
generate(dataTables, fileSettings) {
|
|
16897
|
+
const pdf = new JsPdf(fileSettings.orientation);
|
|
16898
|
+
this.setDocumentTitle(pdf, fileSettings.title);
|
|
16899
16899
|
this.setDocumentLogo(pdf);
|
|
16900
16900
|
dataTables.forEach((dataTable) => {
|
|
16901
16901
|
pdf.autoTable({
|