• Advertisement
Sign in to follow this  

How to export website to pdf

This topic is 1226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have a website, that is just really displaying the input of a form, you know like a typical confirmation page. I want to have a  button there to export the website to pdf, how can I do this ? I tried using the scripts offered in printfriendly.com but the pdf prints the url at the top and it can't be removed, it even shows when you print the page physically, I can't have that. Then I tried all these different libraries. I tried jspdf, but it only works on firefox and the text comes all messed up in the pdf, kind of like all justified and without line spacing, it shows all the text together in one block. Then I tried other libraries like dompdf, html2pdf, fpdf and all of them give me errors.

Share this post


Link to post
Share on other sites
Advertisement

As a side note, (some versions of?) The GIMP allow to rasterize whole webpages to an image. I think it's likely this is not enough but you can always try.

Share this post


Link to post
Share on other sites

We use PhantomJS for something like this. It isn't perfect, but we had complex requirements and it handles most things well enough.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement