Hayyan Govinda

Results comments of Hayyan Govinda

instead of [(ngModel)],use [formControlName] =" name of FormControl"

RENDER SEVERAL HTML IN ONE DOC function generatePDF(elements) { const pdf = new jsPDF('l', 'pt', 'a4'); const pageHeight = pdf.internal.pageSize.getHeight(); const pageWidth = pdf.internal.pageSize.getWidth(); let currentIndex = 0; function addElementToPDF(index)...

this is what i used in angular, replace tableArray with an array of your html elements.. Note: the number of page must be same as tableArray length downloadPdfReport() { const...

Hello ,I think it is ok now, the method .html accepts margin as option ,pass it ,,then it should be fine : ![image](https://github.com/parallax/jsPDF/assets/137759281/d617384e-6ed7-4ed6-93f8-f4c3a4424535) ![table](https://github.com/parallax/jsPDF/assets/137759281/8afbf520-0ff0-41d3-8693-8cb29cb22bcb)

@yatkolenko Hello ,I think it is ok now, the method .html accepts margin as option ,pass it ,,then it should be fine : ![image](https://github.com/parallax/jsPDF/assets/137759281/95c1e5f9-3aed-4045-9a45-240915c453f1) ![table](https://github.com/parallax/jsPDF/assets/137759281/88e50adc-c82d-43c8-9ca0-aad090c5b9ce)

> res.status(200).send(Buffer.from(pdfBuffer)); this worked for me

res.status(200).send(**### Buffer.from**(pdfBuffer)); in node it solve the issue

res.status(200).send(**### Buffer.from**(pdfBuffer)); in node it solve the issue