开发者

convert html pages to pdf

Im just imagining what the things I can do to make a pdf file out of my localhost files(.php). I tried using the on开发者_如何学Pythonline conversion tools but it didnt work because they're not on the web definitely. Can you recommend me of some ways on how I can achieve my goal of converting an html table into pdf and print it using the print function in vb.net?

-I'm using vb.net as my interface for the database program I am making(mysql) utilizing php as the code to manipulate database. I've made use of vb.nets web browser to achieve this. Because I'm still a moron when it comes to php.


You have tagged it as php too and in php, we find fpdf to be really good to create all sorts of layouts.

Tutorials

Scripts


If you're on Linux and PHP environment, you might wanna try wkthmltopdf on http://code.google.com/p/wkhtmltopdf/

I have tried it myself and was so pleased with the results of HTML conversion to PDF.

It has a program to run from terminal and it works well with your CSS styles.

But the file is huge and you need to install X Server on your Linux.


I've used Migradoc / PDFSharp for generating .pdf files to great effect.


Prince XML ( http://www.princexml.com/ ) does an incredible job of converting even complex CSS layouts to PDFs. (We use it in combination with TinyMCE so end-users can create PDFs, and the results look great.) The license is fairly expensive, though.


I used in one project http://www.digitaljunkies.ca/dompdf/. There is some work with fonts and encoding, but its functional with CSS, images and etc. And today I found mpdf.bpm1.com/ but I didnt try it.


You can try fpdf or tcpdf. Both are open source and use PHP classes for their implementation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜