在C#中将文本转换为pdf [英] convert text to pdf in c#

查看:78
本文介绍了在C#中将文本转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可以将文本文件转换为pdf的c#代码.我在codeproject中得到了一些解决方案,但不清楚.请帮我解决这个问题.

I am looking for c# code that can convert a text file to pdf. I get some solution in codeproject but it''s not clear cut. Please help me to solution this.

推荐答案

PDFCreator具有一个COM组件,可以从.NET或VBScript调用(下载中包含示例).参考: http://sourceforge.net/projects/pdfcreator/ [
PDFCreator has a COM component, callable from .NET or VBScript (samples included in the download). Ref: http://sourceforge.net/projects/pdfcreator/[^]


阅读本文:

将文本文件转换为PDF文件 [ ^ ]

希望对您有所帮助:)
Read this article:

Convert a Text File to a PDF File[^]

hope it helps :)


您可以使用Microsoft.Interop来完成.看看这个:
http://codeabout.wordpress.com/2012 /03/20/convert-a-word-file-to-pdf-with-c/ [
You can do it by using Microsoft.Interop. Take a look at this:
http://codeabout.wordpress.com/2012/03/20/convert-a-word-file-to-pdf-with-c/[^]


这篇关于在C#中将文本转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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