将任何代码文件转换为PDF [英] Convert any code file to PDF

查看:101
本文介绍了将任何代码文件转换为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打印机( PrintDocument 类应该对您有所帮助走那条路.

还可以看看使用C#生成PDF [
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆