简体   繁体   English

使用 Word 互操作对 doc 和 docx 进行水印

[英]Using Word Interop to Watermark doc and docx

Is there a way to use word interop (for instance) to watermark a doc or docx file?有没有办法使用 word interop(例如)给 doc 或 docx 文件加水印?

Any solution would be good, but it is going to have to work from within C#.任何解决方案都很好,但它必须在 C# 内工作。

Ie supply the code with a byte[] and it will have to add a watermark and spit out a new byte[]即为代码提供一个字节[],它必须添加一个水印并吐出一个新的字节[]

You can do that using Aspose Words, the C# library for creating and modifying Word documents without actually needing Word.您可以使用 Aspose Words、C# 库来创建和修改 Word 文档,而实际上不需要 Word。

Have a look at http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-add-a-watermark-to-a-document.html .看看http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-add-a-watermark-to-a-document.html

No, I don't own Aspose shares, unfortunately...不,我不拥有 Aspose 股票,不幸的是......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在没有 Microsoft.Office.Interop 的 .NET Core 中将 Word doc 和 docx 格式转换为 PDF - Convert Word doc and docx format to PDF in .NET Core without Microsoft.Office.Interop 使用Interop.Word C#将doc转换为pdf - Converting doc to pdf using Interop.Word C# 使用c#将word文件(.docx和doc)转换为.pdf无效 - Convert of word file(.docx & doc) to .pdf using c# is not working 如何使用Sendkeys方法将“ &lt;”字符发送到Word文档(.doc,docx) - How to send “<” characters to Word documents (.doc, docx) using Sendkeys method 使用 c# 将 word 文件(.docx 和 doc)转换为 .pdf - Convert word file(.docx & doc) to .pdf using c# 解析Word(.doc /.docx)文档 - Parse Word (.doc /.docx) document 如何在C#中使用Microsoft.Office.Interop.Word从Word文件(.Docx)中按页获取文本 - How to get text by page from word file (.Docx) using Microsoft.Office.Interop.Word in C# 如何在Word Doc中禁用标题部分以使用Word Interop C#进行编辑 - How to Disable Header section in Word Doc for editing using word interop c# 将Word文件(doc / docx)转换为html文本 - Convert Word file (doc/docx) in to html text 如何使用Microsoft.Office.Interop.Word.Document.PrintOut()将docx打印到特定的打印机 - How to print a docx to a specific printer using Microsoft.Office.Interop.Word.Document.PrintOut()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM