adding headings

This commit is contained in:
Frank Knoll
2024-07-15 23:23:00 +02:00
parent 5ca83f6830
commit 658076856d

View File

@@ -3,8 +3,11 @@ class PdfCreator {
static createPdf() { static createPdf() {
const documentDefinition = { const documentDefinition = {
content: [ content: [
{ text: 'Customizing Page Size and Orientation', fontSize: 16, bold: true }, { text: 'EU Safety Signal (All drugs)', fontSize: 16, alignment: 'center', margin: [0, 0, 0, 20], bold: true },
{ text: 'This PDF has custom page size and orientation.' }, { text: 'Worst Drugs', fontSize: 12, alignment: 'left', margin: [0, 10, 0, 10], bold: true },
{ text: 'table' },
{ text: 'Strongest Symptoms', fontSize: 12, alignment: 'left', margin: [0, 10, 0, 10], bold: true },
{ text: 'table' },
] ]
} }
return pdfMake.createPdf(documentDefinition); return pdfMake.createPdf(documentDefinition);