DEV Community

Discussion on: How to convert HTML to PDF using Angular

Collapse
 
technbuzz profile image
Samiullah Khan

Does this approach works with generating reports, that involves more than one pages? Is the text selectable in pdf and does it have clickable links?

Collapse
 
_mnavarros profile image
Manuel Navarro

Hi!

Thank you for your comment, I'll expand the article with your questions answered and some examples.

generating reports, that involves more than one pages

Yes, by using the addPage function included with jsPDF

doc.addPage()
Enter fullscreen mode Exit fullscreen mode

Is the text selectable in pdf

In my example it isn't since I'm appending the complete image of my report but you can do as follows:

doc.text(35, 25, 'My text')
Enter fullscreen mode Exit fullscreen mode

does it have clickable links?

I think it's possible but I've haven't done it myself, I'll try and let you know.

Thanks for your comment! :)