Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const pdf = new jsPDF('l', 'px', 'a4');
- pdf.internal.scaleFactor = 0.75;
- const logo = html2canvas(document.getElementById('activityLogo'))
- pdf.addImage(logo, 'jpeg');
- pdf.save(`file.pdf`);
- <ng-template #exportImage>
- <div class="pt-2 pb-5">
- <img alt="Information" id="activityLogo" src="assets/img/brand/png/Logo.png" width="100" />
- </div>
- </ng-template>
- Cannot read property 'ownerDocument' of null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement