开发者

php: read an http url and write it to pdf

开发者 https://www.devze.com 2023-01-29 13:24 出处:网络
im using php I want to read a url ex http://www.cnn.com create a new pdf and store to开发者_如何学运维 the serverTry this: http://code.google.com/p/wkhtmltopdf/. It\'s open source, and seems to be b

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

精彩评论

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