adding headings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user