Closed rogigs closed 8 months ago
[Solved] I had problems with the structure of my compents that for any reason affected to build a image in pdf. The following code also helped:
const imgHeader = new Image();
imgHeader.src = '../../../../../assets/images/logo/logo.png';
pdf.addImage(imgHeader, 'png', 15, 5, 10, 10);
My solution isn't working and doesn't generate any errors in the terminal. How can I solve my problem? I need an image in the footer and header. I tried putting an image in the header, but it doesn't work and my PDF isn't being saved.
I'm trying to put this into an Angular 14.2.3 project