This article is a mirror article of machine translation, please click here to jump to the original article.

View: 69|Reply: 1

[.NET Core] .NET/C# Use itext to add text watermarks to PDFs

[Copy link]
Posted on4 days ago | | | |
Requirements: There are public PDF documents available on the website. Visitors can preview PDFs, but downloading them requires registration and login. When users preview PDF content, they need to add a watermark to the source file.

iText represents a new generation of SDK aimed at developers, designed to help them fully leverage the advantages of PDF. The iText PDF library is equipped with a more powerful document engine, advanced and low-level programming features, and the ability to create, edit, and enhance PDF documents, supporting nearly every workflow. iText allows you to build custom PDF scenes for web, mobile, desktop, or cloud applications in .NET.

iText's development draws on nearly ten years of experience from iText 5 (iTextSharp). It is a simpler, higher-performing, and more scalable library that can gradually address the increasingly severe challenges in today's document workflows.

Official Website:The hyperlink login is visible.

First, nuget quotes as follows:

The code is as follows:
As shown below:



Attached quote:




Previous:.NET/C# Use SixLabors.ImageSharp to add watermark text to images
Next:[Repost] Spring Boot and Jasper Reports report construction
 Landlord| Posted on52 seconds ago |
Fixed the issue of rotating corners on PDF pages, the code is as follows:
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com