当前位置:网站首页>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 :

边栏推荐
- 纽约大学 CITIES 研究中心招聘理学硕士和博士后
- Recent applet development records
- [paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
- Web3的先锋兵:虚拟人
- freeswitch拨打分机号源代码跟踪
- 【LeetCode】Day97-移除链表元素
- Big guys gather | nextarch foundation cloud development meetup is coming!
- This week's hot open source project!
- Data connection mode in low code platform (Part 1)
- 如何从0到1构建32Core树莓派集群
猜你喜欢

3D laser slam: time synchronization of livox lidar hardware

Collection recommandée!! Quel plug - in de gestion d'état flutter est le plus fort? Regardez le classement des manons de l'île, s'il vous plaît!

Lumion 11.0软件安装包下载及安装教程

【森城市】GIS数据漫谈(二)

Lidar: introduction and usage of ouster OS

Cat recycling bin

张平安:加快云上数字创新,共建产业智慧生态
![[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

postgresql之integerset

激光雷达:Ouster OS产品介绍及使用方法
随机推荐
The empirical asset pricing package (EAP) can be installed through pypi
New generation cloud native message queue (I)
张平安:加快云上数字创新,共建产业智慧生态
MFC Windows 程序设计[147]之ODBC数据库连接(附源码)
C#/VB.NET 删除Word文档中的水印
STM32F4---PWM输出
Integerset of PostgreSQL
【森城市】GIS数据漫谈(二)
The last line of defense of cloud primary mixing department: node waterline design
1--新唐nuc980 NUC980移植 UBOOT,从外部mx25l启动
6 seconds to understand the book to the Kindle
Halcon knowledge: segment_ contours_ XLD operator
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
如何从0到1构建32Core树莓派集群
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
使用Ceres进行slam必须要弄清楚的几个类和函数
豆瓣平均 9.x,分布式领域的 5 本神书!