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

边栏推荐
- 张平安:加快云上数字创新,共建产业智慧生态
- 张平安:加快云上数字创新,共建产业智慧生态
- 人脸识别应用解析
- Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
- What to do when encountering slow SQL? (next)
- 【服务器数据恢复】raid损坏导致戴尔某型号服务器崩溃的数据恢复案例
- 处理streamlit库上传的图片文件
- 3D激光SLAM:Livox激光雷达硬件时间同步
- XML to map tool class xmlmaputils (tool class V)
- 老板被隔离了
猜你喜欢

一片葉子兩三萬?植物消費爆火背後的“陽謀”

Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption

Lidar: introduction and usage of ouster OS

The boss is quarantined

Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem

FLIR blackfly s industrial camera: auto exposure configuration and code

Web3的先锋兵:虚拟人
![[paper reading | deep reading] dngr:deep neural networks for learning graph representations](/img/8e/41a80131c6ec7a7cdffe4a77012fed.png)
[paper reading | deep reading] dngr:deep neural networks for learning graph representations

本周 火火火火 的开源项目!

建议收藏!!Flutter状态管理插件哪家强?请看岛上码农的排行榜!
随机推荐
Draco - glTF模型压缩利器
Overall query process of PostgreSQL
压缩 js 代码就用 terser
RC振荡器和晶体振荡器简介
freeswitch拨打分机号源代码跟踪
FLIR blackfly s industrial camera: configure multiple cameras for synchronous shooting
豆瓣平均 9.x,分布式领域的 5 本神书!
Flir Blackfly S USB3 工业相机:计数器和定时器的使用方法
XML to map tool class xmlmaputils (tool class V)
Pgadmin4 of PostgreSQL graphical interface tool
机器人队伍学习方法,实现8.8倍的人力回报
3D laser slam: time synchronization of livox lidar hardware
[server data recovery] data recovery case of a Dell server crash caused by raid damage
1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
企业中台建设新路径——低代码平台
Detailed explanation of line segment tree (including tested code implementation)
Unicode string converted to Chinese character decodeunicode utils (tool class II)
Flir Blackfly S工业相机:颜色校正讲解及配置与代码设置方法
The empirical asset pricing package (EAP) can be installed through pypi
How can reinforcement learning be used in medical imaging? A review of Emory University's latest "reinforcement learning medical image analysis", which expounds the latest RL medical image analysis co