📦 Pdf Spool
$ npm install --save @fabrix/spool-pdf
// config/main.ts
import { PdfSpool } from '@fabrix/spool-pdf'
export const main = {
spools: [
// ... other spools
PdfSpool
]
}
// config/pdf.ts
export const pdf = {
allowLocalFilesAccess: true,
printDelay: 100,
paperSize: {
format: 'Letter',
height: '11in',
width: '8.5in'
},
format: {
quality: 100
}
}
For more information about store (type and configuration) please see the pdf documentation.
this.app.pdf.htmlToPDF('<h1>Hello World</h1>')
.then(pdf => {
// Do something with your PDF
})