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