-types Html2pdf.js < 2026 >

Or check the official TypeScript repository: DefinitelyTyped .

html2pdf(document.body, margin: 1, filename: 'test.pdf', image: type: 'jpeg', quality: 1 , html2canvas: scale: 2 , jsPDF: unit: 'in', format: 'A4', orientation: 'portrait' , , function (pdf) console.log('PDF generated'); ); -types html2pdf.js

The worker type of html2pdf.js allows developers to generate PDF documents in a separate worker thread. This improves performance and responsiveness. Or check the official TypeScript repository: DefinitelyTyped

Here is a comparison of the different types of html2pdf.js: image: type: 'jpeg'

Go to Top