本文介绍了将HTML导出为PDF(C ++,Windows)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个可再分发组件来将HTML转换为PDF。

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

我现在希望避免使用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.

HTML可在浏览器控件或外部文件中使用。 HTML通常相当简单,但客户可以创建自己的模板,因此应该支持范围广泛的HTML。

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.

C ++ - DLL / COM /外部可执行文件与命令行支持都没有问题。

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.

你知道还是可以推荐?

推荐答案

可以作为虚拟打印机,但也可以通过COM使用。默认设置甚至包括COM示例。

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

您可以在SourceForge SVN存储库中查看COM示例:

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

这篇关于将HTML导出为PDF(C ++,Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 13:21