当前位置:网站首页>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 :
边栏推荐
- Big guys gather | nextarch foundation cloud development meetup is coming!
- 本周 火火火火 的开源项目!
- leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】
- 大咖云集|NextArch基金会云开发Meetup来啦!
- Pgadmin4 of PostgreSQL graphical interface tool
- 1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
- 老板被隔离了
- 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
- STM32项目 -- 选题分享(部分)
- Infrared camera: juge infrared mag32 product introduction
猜你喜欢
[server data recovery] data recovery case of a Dell server crash caused by raid damage
强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
使用Ceres进行slam必须要弄清楚的几个类和函数
1--新唐nuc980 NUC980移植 UBOOT,从外部mx25l启动
Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code
Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
Data connection mode in low code platform (Part 1)
Alibaba cloud middleware open source past
3--新唐nuc980 kernel支持jffs2, Jffs2文件系统制作, 内核挂载jffs2, uboot网口设置,uboot支持tftp
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
随机推荐
FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
argo workflows源码解析
传感器:DS1302时钟芯片及驱动代码
Big guys gather | nextarch foundation cloud development meetup is coming!
Introduction to FLIR blackfly s industrial camera
张平安:加快云上数字创新,共建产业智慧生态
Livox激光雷达硬件时间同步---PPS方法
Treadpoolconfig thread pool configuration in real projects
How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
最近小程序开发记录
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
大咖云集|NextArch基金会云开发Meetup来啦!
[leetcode] day97 remove linked list elements
组合导航:中海达iNAV2产品描述及接口描述
Sensor: DS1302 clock chip and driver code
The empirical asset pricing package (EAP) can be installed through pypi
机器人队伍学习方法,实现8.8倍的人力回报
[C # notes] reading and writing of the contents of text files
Real project, realized by wechat applet opening code (end)