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.

Artilheiro
  • 4,005
  • 10
  • 36
  • 34

4 Answers4

34

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

emalamisura
  • 2,816
  • 2
  • 29
  • 34
Evertiro
  • 779
  • 6
  • 24
  • 2
    I have tested a number of these and have found http://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 http://web2pdfconvert.com – jpeskin Mar 28 '12 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 – user1914292 Jul 20 '13 at 13:01
  • 1
    I tested all your links... the best for me is pdfcrowd. Thanks @jpeskin for the suggestion. – Beto Aveiga Nov 28 '16 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 '17 at 16:38
  • https://www.html2pdfwebservice.com is another one. – Htbaa Sep 03 '19 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.

Josh Colter
  • 191
  • 1
  • 3
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.

Steve Mayne
  • 22,285
  • 4
  • 49
  • 49
  • 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?? – Supun Wijerathne Jan 31 '17 at 11:29
0

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

Asme Just
  • 1,287
  • 5
  • 27
  • 42
  • 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](/review/low-quality-posts/18079519) – DonBoitnott Nov 27 '17 at 20:38
  • @DonBoitnott OK, so does this mean I should delete the answer? Let me know please. – Asme Just Nov 27 '17 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. – DonBoitnott Nov 27 '17 at 21:10
  • Okay, thanks for letting me know. – Asme Just Nov 28 '17 at 01:13