I am trying to convert an html page to PDF which contains images and some data-tables which as designed using css styles.
I have tried JSPDF and html2canvas libraries but the images don’t show up in PDF and also they don’t allow me to create PDF on long pages as my html is dynamic and it could grow into four pages.
I have searched so many forum’s online but unable to find anything which resolves my issue.
The site in which i am implementing is shopify site. So any clue with this reference might help.
Any sort of help will be highly thankful.
Thanks
2
Answers
check at this link if it can be usefull for you on codepen
https://codepen.io/massimo-cassandro/pen/qOrJNx
Transform the content of your html into image and then transform it into PDF :
https://html2canvas.hertzen.com/
https://parall.ax/products/jspdf