当前位置:网站首页>C#/VB. Net to delete watermarks in word documents
C#/VB. Net to delete watermarks in word documents
2022-07-07 02:25:00 【51CTO】
stay Word Watermarks added to documents , Such as text watermark or image watermark , Can effectively show ownership , It can also play a certain warning effect . But what if you want to delete these watermarks ? This article will provide a way to delete Word Methods of watermarking in documents . This method is suitable for deleting text watermark and image watermark . Here are the detailed methods and steps .
Program environment
In this test , Introduce... Into the program Free Spire.Doc for .NET. Can be referenced by Spire.Doc.dll file :
Method 1: take Free Spire.Doc for .NET Download to local , decompression , install . After installation , Find the installation path BIN In folder Spire.Doc.dll. And then in Visual Studio Open in “ Solution explorer ”, Right click “ quote ”,“ Add reference ”, The local path BIN Under folder dll Add a reference to the program .
Method 2: adopt NuGet install . This can be done by 2 Methods of installation :
(1) Can be in Visual Studio Open in “ Solution explorer ”, Right click “ quote ”,“ management NuGet package ”, And then the search “Free Spire.Doc”, Click on “ install ”. Wait for the program installation to complete .
(2) Copy the following to PM Console installation .
Install-Package FreeSpire.Doc -Version 10.2.0
Specific steps :
- initialization Document An instance of a class .
- call Document.LoadFromFile(string fileName, FileFormat fileFormat) Method loading Word file .
- take Document.Watermark Property is set to null.
- adopt Document.SaveToFile(string fileName, FileFormat fileFormat) Method to save the result document to the specified path .
Complete code :
【C#】
【VB.NET】
design sketch :

边栏推荐
- 最近小程序开发记录
- Processus général de requête pour PostgreSQL
- [leetcode] day97 remove linked list elements
- 【论文阅读|深读】RolNE: Improving the Quality of Network Embedding with Structural Role Proximity
- FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
- Gee upgrade can realize one piece of run tasks
- Flir Blackfly S 工业相机:自动曝光配置及代码
- STM32F4---通用定时器更新中断
- The boss is quarantined
- 解密函数计算异步任务能力之「任务的状态及生命周期管理」
猜你喜欢
![[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity](/img/21/59c4d61b22e7d021b7a72a64a16b48.png)
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity

postgresql之整体查询大致过程

Draco - glTF模型压缩利器

Alibaba cloud middleware open source past

机器人队伍学习方法,实现8.8倍的人力回报

Decryption function calculates "task state and lifecycle management" of asynchronous task capability

Flir Blackfly S USB3 工业相机:计数器和定时器的使用方法

阿里云易立:云原生如何破解企业降本提效难题?
![[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files](/img/20/f7fc2204ca165dcea4af25cb054e9b.png)
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files

Robot team learning method to achieve 8.8 times human return
随机推荐
Untiy文本框的代码换行问题
The foreground downloads network pictures without background processing
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
Use of pgpool II and pgpooladmin
阿里云中间件开源往事
建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
Redis tool class redisutil (tool class III)
3--新唐nuc980 kernel支持jffs2, Jffs2文件系统制作, 内核挂载jffs2, uboot网口设置,uboot支持tftp
Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
[C # notes] use file stream to copy files
Integrated navigation: product description and interface description of zhonghaida inav2
阿里云易立:云原生如何破解企业降本提效难题?
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
机器人队伍学习方法,实现8.8倍的人力回报
Time synchronization of livox lidar hardware -- PPS method
人脸识别应用解析
4--新唐nuc980 挂载initramfs nfs文件系统
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
[leetcode] day97 remove linked list elements