Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get wkhtmltopdf to produce PDFs with selectable and searchable text?

Tags:

wkhtmltopdf

I've installed wkhtmltopdf on Mac OS X via homebrew and I've also tried compiling it (along with the patched version of Qt) by hand. In both cases, the PDFs it generates do not contain any selectable, copyable, or searchable text. Instead each page seems to be its own monolithic image.

However, the binary version for Mac OS that's provided on the website does produce selectable text. But it's an older version (0.9.9) and does not support some of the newer features in 0.11 rc1 that I need.

How do I get newer versions to produce PDFs with selectable and searchable text?

like image 558
John Avatar asked Oct 06 '11 18:10

John


1 Answers

Currently there is a bug in the queue of that project for just this case.

Unfortunatly, the recent binary for Mac OSX (0.11-rc1) still has this problem

You can get a older (but newner than the original poster's version) version (0.10) that does work here.

like image 157
Ben Bernard Avatar answered Nov 14 '22 23:11

Ben Bernard