Adding Image watermark to Pdf while Creating it using iTextSharp
Wonder if this possible. Saw many posts on adding watermark after the pdf is created and saved in disk. But during creation of document how do i add a image watermark. I know how to add a image to document. But how do i position it such that it comes at the end of page. This is essentially identical to adding a header or footer. You need to create a class that implements PdfPageEvent , and in the OnPageEnd , grab the page's PdfContentByte, and draw your image there. Use an absolute position. Note: You probably want to derive from PdfPageEventHelper, it has empty implementations of all the page