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.
精彩评论