开发者

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

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 a开发者_如何学JAVAn 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?


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.


Ensure the body element has a defined, non-zero height.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜