starting PdfCreator

This commit is contained in:
Frank Knoll
2024-07-15 22:54:30 +02:00
parent 1e20c27716
commit 5ca83f6830
3 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
class PdfCreator {
static createPdf() {
const documentDefinition = {
content: [
{ text: 'Customizing Page Size and Orientation', fontSize: 16, bold: true },
{ text: 'This PDF has custom page size and orientation.' },
]
}
return pdfMake.createPdf(documentDefinition);
// pdfMake.createPdf(documentDefinition).download();
}
}