starting PdfCreator
This commit is contained in:
13
docs/SymptomsCausedByDrugs/js/PdfCreator.js
Normal file
13
docs/SymptomsCausedByDrugs/js/PdfCreator.js
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user