doc.addImage(this.image, 'JPEG', 75, 15,57,23);
doc.text(20, 100, 'Subject : Notification');
doc.save('Test.pdf');
above code is working fine generated PDF string below, downloaded properly in local
save pdf string
doc.addImage(this.image, 'JPEG', 75, 15,57,23);
doc.text(20, 100, 'Subject : Notification');
this.GenPDF = doc.output();
above code the image part render as junk in pdf file – generated PDF string below, attached pdf file image is not rendered but all the text value render properly, image is not visible in attached pdf
doc.output pdf string
can you please help what is the issue or what is the different between doc.save() outcome and doc.output() outcome–> i have to pass this raw output string to external system and attach the pdf to the reference record
expecting doc.output() string image part should render properly in pdf attached in external record
B K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
8