31

Is there a web service for converting HTML to PDF?

Currently we are doing this ourselves, but we would like to take this load off our servers.

4

4 Answers 4

34

For third party solutions there are lots of options. Just to name a few...

5
  • 2
    I have tested a number of these and have found pdfcrowd.com to be the most reliable (on their forums they claim it uses Chrome/WebKit as the engine to render the PDF. I believe it based on the reliable output I've seen, even when pages modify the DOM and draw with JavaScript). The other good one seems to be web2pdfconvert.com
    – jpeskin
    Mar 28, 2012 at 20:29
  • 1
    some of these are based on old technology, like pdfcrowd, which seems to be based on QT4.7 and is no longer under development. htm2pdf seems to working with the latest version of webkit and is the only one I found keeps an active development record Jul 20, 2013 at 13:01
  • 1
    I tested all your links... the best for me is pdfcrowd. Thanks @jpeskin for the suggestion. Nov 28, 2016 at 22:03
  • 2
    Note, all of these except DocRaptor are using open-source PDF converters like wkhtmltopdf. DocRaptor uses the Prince commercial library, which typically makes higher quality and smaller PDFs and provides more formatting options.
    – jamespaden
    Dec 20, 2017 at 16:38
  • html2pdfwebservice.com is another one.
    – Htbaa
    Sep 3, 2019 at 10:12
17

DocRaptor should do the trick. It's a web service, so you'll be able to give your server a break.

1
  • 3
    I prefer DocRaptor to others because Heroku now has this service as Add-On.
    – Trung Lê
    Mar 8, 2012 at 5:51
3

You could use the Python ReportLab library from Google's AppEngine, or if you are happy to use a 3rd-party service, PDFCrowd will do this for you.

1
  • Hi, this python library is working for me, but for some cases the converted pdf doesn't have text format. It shows it as an image. What I am telling is I can't search for words using Ctrl + F. Any guesses?? Jan 31, 2017 at 11:29
0

I use this one http://htmlpdf.com/ and this one I've just discovered http://pdf-ace.com/

4
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review Nov 27, 2017 at 20:38
  • @DonBoitnott OK, so does this mean I should delete the answer? Let me know please.
    – Asme Just
    Nov 27, 2017 at 21:06
  • As this is: 1) quite old; 2) closed as off-topic; 3) exactly like the accepted answer... Just leave it. The comment was auto-generated by the review queue, btw. Nov 27, 2017 at 21:10
  • Okay, thanks for letting me know.
    – Asme Just
    Nov 28, 2017 at 1:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.