windows 是否有用 C++ 编写的开源 PDF 打印机?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8266973/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there an open source PDF printer written in C++?
提问by sashoalm
I want to look at the source code of a PDF printer to see how they do the printer driver part, but so far I've only found PDF Creator which is written in VB. There are plenty of freeware PDF printers but they're not open source, and I need to look at the source code.
我想查看 PDF 打印机的源代码,看看它们如何执行打印机驱动程序部分,但到目前为止我只找到了用 VB 编写的 PDF Creator。有很多免费的 PDF 打印机,但它们不是开源的,我需要查看源代码。
采纳答案by Sergei Nikulov
Here the project EmfPrinterwritten in C++.
这里是用 C++ 编写的EmfPrinter项目。
回答by Cheers and hth. - Alf
I use OpenOfficeto convert Word documents to PDF.
我使用OpenOffice将 Word 文档转换为 PDF。
I believe the source code is available.
我相信源代码是可用的。
If you really only want the "printer driver" part then this may not be what you're looking for. But if you're interested in the PDF generation then it may very well be.
如果您真的只想要“打印机驱动程序”部分,那么这可能不是您要找的。但如果您对 PDF 生成感兴趣,那么它很可能是。