服务器端库,用于将办公室文件转换为带有添加图章/水印的pdf [英] Server side library for conversion of office files to pdf with added stamp/watermark
问题描述
我需要获取Word,Excel,PowerPoint和Visio文件,并使用C#在服务器端将它们转换为PDF.
I need to take Word, Excel, PowerPoint and Visio files and convert them to PDF on the server side using C#.
在PDF转换之前或之后的某个时间点,客户希望将图章/水印添加到文档的一角(假设目前在每一页上).
At some point before or after the PDF conversion, the clients want a stamp/watermark to be added to the corner of the document (assuming, for now, on every page).
在此过程中,我无法使用Office产品,因为使用互操作"服务器端涉及许可和稳定性问题.另外,出于类似的原因,我宁愿不依赖服务器上的任何其他已安装软件.此功能将同时由多个客户端使用.
I cannot use Office products in the process, as there are licensing and stability issues involved with using "interop" server-side. Also, I would rather not depend on any other installed software on the server for similar reasons; this functionality will be used by multiple clients at the same time.
我花了几天的时间进行搜索, Aspose 似乎是唯一合适的库,但是它似乎太昂贵了.我欢迎任何能满足所有要求的建议,或欢迎使用单独的库来处理水印并分别转换为PDF
I have spent a couple of days searching, and Aspose seems to be the only library which would be suitable, however it seems prohibitively expensive. I would welcome any suggestions which would complete all requirements, or separate libraries to handle the watermark and conversion to PDF separately
更新:到目前为止,我已经有了一个原型,将上述所有文件类型转换为pdf,并使用Aspose添加了水印.相对容易,论坛在挑剔的情况下可以提供很大的帮助
UPDATE: As of now I have a prototype converting all the above file types to pdf with a watermark added using Aspose. It was relatively easy, the forum can be a great help when in a pickly
推荐答案
I think AbcPDF will do this for about half the price: http://www.websupergoo.com/abcpdf-office-docs.htm
您可能必须自己滚动水印部分,但这对代码来说是微不足道的.
You might have to roll the watermark part yourself, but that's quite trivial to code.
这里也有很多库:基于.NET服务器的PDF生成
这篇关于服务器端库,用于将办公室文件转换为带有添加图章/水印的pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!