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

边栏推荐
- 4--新唐nuc980 挂载initramfs nfs文件系统
- 压缩 js 代码就用 terser
- Gee upgrade can realize one piece of run tasks
- Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
- Jacob Steinhardt, assistant professor of UC Berkeley, predicts AI benchmark performance: AI has made faster progress in fields such as mathematics than expected, but the progress of robustness benchma
- 阿里云中间件开源往事
- [xlua notes] array of lua to array of C #
- Detailed explanation of line segment tree (including tested code implementation)
- 【森城市】GIS数据漫谈(二)
- [server data recovery] data recovery case of a Dell server crash caused by raid damage
猜你喜欢

如何从0到1构建32Core树莓派集群

【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件

阿里云易立:云原生如何破解企业降本提效难题?

Flir Blackfly S 工业相机:配置多个摄像头进行同步拍摄

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

Blackfly S USB3工业相机:缓冲区处理

postgresql之integerset
![[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

大咖云集|NextArch基金会云开发Meetup来啦!

Lombok同时使⽤@Data和@Builder 的坑
随机推荐
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
如何从0到1构建32Core树莓派集群
企业中台建设新路径——低代码平台
C#/VB.NET 删除Word文档中的水印
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
3D激光SLAM:Livox激光雷达硬件时间同步
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
Sensor: DS1302 clock chip and driver code
How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
大咖云集|NextArch基金会云开发Meetup来啦!
Metaforce force meta universe development and construction - fossage 2.0 system development
低代码平台中的数据连接方式(上)
Seconds understand the delay and timing function of wechat applet
长安链学习笔记-证书研究之证书模式
Recent applet development records
Processus général de requête pour PostgreSQL
4--新唐nuc980 挂载initramfs nfs文件系统
TiFlash 源码阅读(四)TiFlash DDL 模块设计及实现分析
#yyds干货盘点# 解决名企真题:最大差值
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!