当前位置:网站首页>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 :
边栏推荐
- 猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
- [C # notes] use file stream to copy files
- Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
- Detailed explanation of line segment tree (including tested code implementation)
- Flir Blackfly S 工业相机:通过外部触发实现多摄像头同步拍摄
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- 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
- 真实项目,用微信小程序开门编码实现(完结)
- 云原生混部最后一道防线:节点水位线设计
- Treadpoolconfig thread pool configuration in real projects
猜你喜欢
Flir Blackfly S 工业相机:配置多个摄像头进行同步拍摄
[paper reading | deep reading] graphsage:inductive representation learning on large graphs
Stm32f4 --- PWM output
激光雷达:Ouster OS产品介绍及使用方法
FLIR blackfly s industrial camera: auto exposure configuration and code
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
Flir Blackfly S 工业相机 介绍
New generation cloud native message queue (I)
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
豆瓣平均 9.x,分布式领域的 5 本神书!
随机推荐
Chang'an chain learning notes - certificate model of certificate research
Sensor: DS1302 clock chip and driver code
投资的再思考
Time synchronization of livox lidar hardware -- PPS method
本周 火火火火 的开源项目!
Blackfly S USB3工业相机:缓冲区处理
企业中台建设新路径——低代码平台
Redis tool class redisutil (tool class III)
FLIR blackfly s usb3 industrial camera: white balance setting method
Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
豆瓣平均 9.x,分布式领域的 5 本神书!
go swagger使用
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
Flir Blackfly S 工业相机:自动曝光配置及代码
Date processing tool class dateutils (tool class 1)
freeswitch拨打分机号源代码跟踪
Infrared camera: juge infrared mag32 product introduction
Treadpoolconfig thread pool configuration in real projects
PostgreSQL图形化界面工具之pgAdmin4
#夏日挑战赛#数据库学霸笔记(下)~