Hayyan Govinda
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 :  
@yatkolenko Hello ,I think it is ok now, the method .html accepts margin as option ,pass it ,,then it should be fine :  
> 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