开发者

php: read an http url and write it to pdf

im using php

I want to read a url ex http://www.cnn.com

create a new pdf and store to开发者_如何学运维 the server


Try this: http://code.google.com/p/wkhtmltopdf/. It's open source, and seems to be based on the WebKit engine, which is used in many browsers today (Chrome, Safari, iOS, Android). It also has PHP bindings!

Here's the link to the GitHub page: https://github.com/mreiferson/php-wkhtmltox.


You can't just create a pdf from a web page. Especially if you don't want to make a jpeg of the whole thing and stuff that in a pdf.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜