Add Text and Image Stamp

Add Text Stamp on All Pages in a PDF File

PdfFileStamp class allows you to add text stamp on all the pages of a PDF file. In order to add text stamp, you first need to create objects of PdfFileStamp and Stamp classes. You also need to create the text stamp using BindLogo method of Stamp class. You can set other attributes like origin, rotation, background etc. using Stamp object as well. Then you can add the stamp in the PDF file using AddStamp method of PdfFileStamp class. Finally, save the output PDF file using Close method of PdfFileStamp class. The following code snippet shows you how to add text stamp on all pages in a PDF file.

Add Text Stamp on Particular Pages in a PDF File

PdfFileStamp class allows you to add text stamp on particular pages of a PDF file. In order to add text stamp, you first need to create objects of PdfFileStamp and Stamp classes. You also need to create the text stamp using BindLogo method of Stamp class. You can set other attributes like origin, rotation, background etc. using Stamp object as well. As you want to add text stamp on particular pages of the PDF file, you also need to set the Pages property of the Stamp class. This property requires an integer array containing numbers of the pages on which you want to add the stamp. Then you can add the stamp in the PDF file using AddStamp method of PdfFileStamp class. Finally, save the output PDF file using Close method of PdfFileStamp class. The following code snippet shows you how to add text stamp on particular pages in a PDF file.

Add Image Stamp on All Pages in a PDF File

PdfFileStamp class allows you to add image stamp on all the pages of a PDF file. In order to add image stamp, you first need to create objects of PdfFileStamp and Stamp classes. You also need to create the image stamp using BindImage method of Stamp class. You can set other attributes like origin, rotation, background etc. using Stamp object as well. Then you can add the stamp in the PDF file using AddStamp method of PdfFileStamp class. Finally, save the output PDF file using Close method of PdfFileStamp class. The following code snippet shows you how to add image stamp on all pages in a PDF file.

Control image quality when adding as stamp

When adding Image as stamp object, you can also control the quality of image. In order to accomplish this requirement, Quality property is added for Stamp class. It indicates the quality of image in percents (valid values are 0..100).

Add Image Stamp on Particular Pages in a PDF File

PdfFileStamp class allows you to add image stamp on particular pages of a PDF file. In order to add image stamp, you first need to create objects of PdfFileStamp and Stamp classes. You also need to create the image stamp using Bind Image method of Stamp class. You can set other attributes like origin, rotation, background etc. using Stamp object as well. As you want to add image stamp on particular pages of the PDF file, you also need to set the Pages property of the Stamp class. This property requires an integer array containing numbers of the pages on which you want to add the stamp. Then you can add the stamp in the PDF file using AddStamp method of PdfFileStamp class. Finally, save the output PDF file using Close method of PdfFileStamp class. The following code snippet shows you how to add image stamp on particular pages in a PDF file.