From 658076856d7e04412ec08170d47daf52cc64099e Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Mon, 15 Jul 2024 23:23:00 +0200 Subject: [PATCH] adding headings --- docs/SymptomsCausedByDrugs/js/PdfCreator.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/SymptomsCausedByDrugs/js/PdfCreator.js b/docs/SymptomsCausedByDrugs/js/PdfCreator.js index 070e904f702..8bf21973582 100644 --- a/docs/SymptomsCausedByDrugs/js/PdfCreator.js +++ b/docs/SymptomsCausedByDrugs/js/PdfCreator.js @@ -3,8 +3,11 @@ 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.' }, + { text: 'EU Safety Signal (All drugs)', fontSize: 16, alignment: 'center', margin: [0, 0, 0, 20], bold: true }, + { 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);