Which library or component can do this in a easy way and not too expensive.
哪个库或组件可以轻松实现,而且不会太昂贵。
Edit: Oeps: I should have informed you that it is web app. and we can't rely on the the user have PDF driver installed.
编辑:Oeps:我应该告诉你它是网络应用程序。而且我们不能依赖用户安装的PDF驱动程序。
4 个解决方案
#1
I've been using Gnostice eDocEngine, a document creation toolkit for VCL with full source code. It creates/converts to Pdf as well. Very easy to use.
我一直在使用Gnostice eDocEngine,这是一个VCL的文档创建工具包,包含完整的源代码。它也会创建/转换为Pdf。非常好用。
#2
The easiest way is to display the HTML file in a TWebBrowser
(as described here) and to print it (as described here) to a PDF Printer (e.g. PDFCreator).
最简单的方法是在TWebBrowser中显示HTML文件(如此处所述)并将其打印(如此处所述)到PDF打印机(例如PDFCreator)。
#3
PowerPdf is free. It doesn't directly convert from html to pdf but you may be able to parse the html and use it to generate a close facsimile.
PowerPdf是免费的。它不直接从html转换为pdf,但您可以解析html并使用它来生成一个紧密的传真。
#4
If you want do this without the user manipulation (transparent for te user) you can read this (PDFFactory).
如果你想在没有用户操作的情况下这样做(对于te用户是透明的),你可以阅读它(PDFFactory)。
Regards.
#1
I've been using Gnostice eDocEngine, a document creation toolkit for VCL with full source code. It creates/converts to Pdf as well. Very easy to use.
我一直在使用Gnostice eDocEngine,这是一个VCL的文档创建工具包,包含完整的源代码。它也会创建/转换为Pdf。非常好用。
#2
The easiest way is to display the HTML file in a TWebBrowser
(as described here) and to print it (as described here) to a PDF Printer (e.g. PDFCreator).
最简单的方法是在TWebBrowser中显示HTML文件(如此处所述)并将其打印(如此处所述)到PDF打印机(例如PDFCreator)。
#3
PowerPdf is free. It doesn't directly convert from html to pdf but you may be able to parse the html and use it to generate a close facsimile.
PowerPdf是免费的。它不直接从html转换为pdf,但您可以解析html并使用它来生成一个紧密的传真。
#4
If you want do this without the user manipulation (transparent for te user) you can read this (PDFFactory).
如果你想在没有用户操作的情况下这样做(对于te用户是透明的),你可以阅读它(PDFFactory)。
Regards.