Adding Image watermark to Pdf while Creating it using iTextSharp with ASP.Net backed with VB.Net
Loading
Adding Image watermark to Pdf while Creating it using iTextSharp with ASP.Net backed with VB.Net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Praveen MishraPosted Jul 13, 2023, 8:44 AM
Hi Sagar ,
To add an image watermark to a PDF while creating it using iTextSharp with ASP.Net backed with VB.Net, you can follow these steps:
Step 1: Install iTextSharp library Make sure you have the iTextSharp library installed in your project. You can install it via NuGet by right-clicking on your project in Visual Studio and selecting "Manage NuGet Packages." Search for "iTextSharp" and install the appropriate package.
Step 2: Import necessary namespaces In your VB.Net code file, import the necessary namespaces for iTextSharp:
Here is code snipped :
Import necessary namespaces
Create a PDF document
Create a PdfWriter
Add content to the document
Amit MohantyPosted Jul 12, 2023, 12:50 PM
Check this