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.
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.
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).
If you want do this without the user manipulation (transparent for te user) you can read this (PDFFactory).
Regards.
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.
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.