Search code examples
c++winapipdfpdf-generation

Export HTML to PDF (C++, Windows)


I am looking for a redistributable component to convert HTML to PDF.

I would - at the moment - like to avoid using a "PDF printer", as this requires a printer installation and some user "playing around" in the printers panel might break that feature.

The HTML is available in a Browser control or as external file. The HTML is normally fairly simple, but customers can create their own templates, so a "good range" of HTML should be supported.

Should be accessible for an automated process from C++ - DLL / COM / external executable with command line support are all fine.

Commercial is fine, but in the thousands is not an option right now.

So, which components do you know or can you recommend?


Solution

  • PDFCreator can function as a virtual printer but it's also usable via COM. The default setup even includes COM examples.

    You can check the COM samples in the SourceForge SVN repository right here: http://pdfcreator.svn.sourceforge.net/viewvc/pdfcreator/trunk/COM/