Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There are many ways to convert a web page to a PDF (online services, bookmarklets, Print to PDF solutions, etc...).

But none of these produce a searchable PDF. It seems like they all convert HTML into one gigantic image. Is there anyway to convert a Web Page into a searchable PDF?

share|improve this question
    
If that has solved your problem then you should post an answer to that effect. Preferably with any details that might help someone else with the same question in the future. After a period of time you will be able to accept the answer then future people with this issue will have a nice clean Q&A that they can find. –  EBGreen Jan 24 '12 at 18:35
    
@EBGreen You are right. Done. –  AngryHacker Jan 24 '12 at 18:48

8 Answers 8

CutePDF writer uses GhostScript for text processing and then ps2pdf to create searchable PDFs of web pages. This will of course not work if the text on the page is an image to start out with.

share|improve this answer
    
I tried it - it does not create searchable PDFs –  AngryHacker Jan 24 '12 at 17:24
    
Are you sure the website is searchable and not one gigantic image or flash? I usually get searchable pdfs with CutePDF from webpages. –  anand_trex Jan 24 '12 at 18:53
    
@trex279 It is searchable, but they do use a lot of html5 semantics, maybe CutePDF and other apps are not yet up to speed with it. Wkhtmltopdf works because it's a wrapper around Khtml (aka WebKit), used in Chrome and Safari and thus is better able to tell what is what. –  AngryHacker Jan 25 '12 at 1:25
up vote 5 down vote accepted

I found wkhtmltopdf project, which seems to do the trick. It's command line, so there is a bit of a learning curve, but not too bad.

Specifically to convert a web page, open a command window in the directory where wkhtmltopdf was installed and execute the following:

wkhtmltopdf.exe http://www.yourpage.com/index.htm c:\misc\cnn.pdf

The application has a ridiculous amount of options designed to tweak the output as needed, but the defaults give a pretty good result.

share|improve this answer
    
what if the webpage contains authenticated data like myspace / facebook? then this solution won't work –  Bonus Kun Feb 21 '13 at 15:33

What's the problem with Print to PDF solutions? I've two virtual printers installed in my system: PDF Creator & Virtual Printer from Adobe Acrobat X. Both work fine. I can search text in generated PDFs easily as long as my PDF viewer has OCR capabilities (which is common these days).
If you are thinking about creating something like text and word document, you can't. Its limitation of PDF format or says its how PDF format work. Due to this, we can embed fonts etc. in this format without any dependency to make it universal.
And, I don't think wkhtmltopdf project can generate a PDF file in which text can be searched without using OCR technology (because it'll violate PDF specification).

share|improve this answer

I use Adobe Acrobat 8 Professional (current version is Adobe Acrobat X). It has a menu option File... Create PDF... From Web Page... which asks me for a URL, then it downloads the page at the URL as a PDF file, with searchable text. It will also convert pages linked to from that page, recursively. You can end up with many HTML pages in one multi-page PDF file, with inter-page links preserved.

For some web pages, Acrobat Create PDF gets the formatting wrong. In that case I fall back to the Adobe PDF 8.0 printer driver which Acrobat 8 Professional installed on my system. It is very good at giving me a PDF equivalent of the web page I'm looking at, with searchable text.

Adobe Acrobat 8 Professional is not free software. It's fully-priced proprietary software. However IMHO it deserves as much a place in every knowledge worker's computer as does Microsoft Office. And, you didn't specify that you insisted on a free software way to convert a Web page into searchable PDF.

share|improve this answer

This is quite a good tool that converts web pages to searchable PDFs: http://kitpdf.com/web_to_pdf/. Try it ans see if it satisfies your needs.

share|improve this answer

I just printed this page in Google Chrome and saved it as a pdf. I have no issues with using search in the printed pdf file. The output may vary depending of page type, if the page contains flash frames - then you most likely will not be able to search for content there.

share|improve this answer

GrabzIt can convert web pages into fully searchable PDF's. More over they provide a free online scheduled task tool, which means that no coding is required.

share|improve this answer

PrimoPDF! It is free. It works perfectly, and it can turn anything that you can print, into a PDF (searchable). It works by adding itself as a new printer. Easy to uninstall as well.

Hope this helps.

share|improve this answer
    
PrimoPDF is the best program for turning webpages into PDF's –  HelpingHand May 7 '13 at 16:19
    
There is also a firefox addon that turns it into an image. –  HelpingHand May 7 '13 at 16:19
    
That program can also write on the image created. –  HelpingHand May 7 '13 at 16:20
    
And blur certain sections. –  HelpingHand May 7 '13 at 16:20
    
I cannot find the name of it though. –  HelpingHand May 7 '13 at 16:21

protected by slhck Dec 20 '13 at 15:21

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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