Sunday, 11 October 2015

PDF Watermark in MVC

Hello friends

In this example, we will learn how to add watermark to existing pdf file in MVC.

To download this example Click here

1.Add an empty MVC Project.
2.Add reference of itextsharp.dll assembly.
3.Add PdfWaterMark controller.
4.Create View For Index Action.
5.Following is the code in PdfWaterMarkController.
6.Following is the code in Index.cshtml.
7.Add WaterMark class file in Models Folder with the following code.
8.Add Download folder in your solution to save and create the output file.
9.Following is the screen shots for your help.

If you have any queries regarding this example post ur comment or send mail to

Thank You

No comments :

Post a Comment