I'm currently in the process of building an application which takes advantage of the itextsharp library. At this point, I am trying to replicate the Adobe watermark image that is generated behind digital signature text when you sign a pdf document from inside of Acrobat.
The issue I'm currently having, is that the image is placed in behind the digital signature text, however, the image is always stretched the height and width of the digital signature field no matter what I do to change it. For example: The image is a 70 x 70 gif. If I use this code snippet: PdfSignatureAppearance sap = this.Stamper.SignatureAppearance; iTextSharp.text.Image watermark = iTextSharp.text.Image.GetInstance(watermarklocation, System.Drawing.Imaging.ImageFormat.Gif); sap.Image = watermark; sap.Image.SetAbsolutePosition(0,0); sap.Image.ScaletoFit(70,70); sap.Image.Transparency.SetValue(30,0); Then the image is applied to the digital signature background with no issue and the transparency is applied correctly. However, the image is still stretched to the width and height of the digital signature field. The same code works if applied to an itext image type outside of the PdfSignatureAppearance declaration but it's like once that image is declared inside of the PdfSignatureAppearance it's height and width variables are determined only by the digital signature field itself. Thanks for the advice/help ahead of time. -- View this message in context: http://itext-general.2136553.n4.nabble.com/ItextSharp-Digital-Signature-Image-question-tp2240578p2240578.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/