问题描述
我有我需要的PDF约200字的文件。
I have got about 200 word documents that I need to pdf.
显然,我不能PDF逐一为,首先将采取的年龄,第二我相信这是不好的做法这样做。
Obviously, I cannot pdf them one by one as, first it will take ages, second I am sure it is not good practice to do so.
我需要找到一种方法来自动转换,因为我们将一次又一次地需要这个。
I need to find a way to automate that conversion, since we will need to this again and again.
我使用C#,但解决方案并不一定是在C#中,但它是preferred。
I use C#, but the solution does not necessarily have to be in c#, but it is preferred.
我有看一些库如的PDFCreator,Office 2007的加载项,iTextSharp的,等等并没有在论坛上的任何明确的答案。
I have had a look at few libraries such as PDfCreator, Office 2007 add-in, ITextSharp, and so forth and there is not any clear answer on the forums.
PDFCreator的有C#示例,但它确实只能用TXT文件。
Office 2007中加入不具有文件锁定功能,这对自动化必须的。
PDFCreator has c# sample, but it does only work with txt files.Office 2007 add in does not have document locking capabilities which a must on the automation.
有没有人实施过这样的场景?我想请你听听您的建议。
has anyone implemented such scenario before? I would like you hear your suggestions.
在此先感谢
关于
推荐答案
您可以尝试方法这篇博客文章:
You can try the method in this blog post:
这篇关于文件的自动化PDF在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!