本文介绍了将任何代码文件转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI, 我想将任何代码文件转换为PDF.但是我看到了很多可以转换它的工具.但是我想要免费的工具(C#代码),可以将任何代码文件转换为PDF. 如果有人对此有任何想法,请帮助我. 谢谢 Supriya P
I want to convert any code file to PDF. But i seen many tools that convert it. but i want free tool(C# code) that convert any code file to PDF. If any one having any idea about it please help me. Thanks Supriya P
推荐答案只要安装了PDF打印机( PDFCreator 是免费的),您应该可以以编程方式打印所有这些文档. PDFCreator具有一个选项,可以以某种特定的模式自动保存文档(避免在每个打印操作中输入文件名). PrintDocument 类应该对您有所帮助走那条路. 还可以看看使用C#生成PDF [ ^ ].它可以解决您的目的. 谢谢... 塔迪特(Tadit) As long as a PDF printer is installed (PDFCreator is free), you should be able to programmatically print all those documents. PDFCreator has an option to auto-save documents in a certain pattern (avoiding the need to enter a filename on each print action). The PrintDocument class should be helpful if you go down that path. Also take a look at Generate PDF Using C#[^]. It may solve your purpose. Thanks... Tadit
更多推荐
将任何代码文件转换为PDF
发布评论