djdjdj, djdjdj wrote: > sap.GetLayer(2).AddImage(watermark); > > The problem that I've seen is that when you start manipulating the layer > appearance manually such as in the code above. An image is added, > formatted and placed correctly, however the remainder of the digital > signature object (such as text, signing date/time etc.) is now removed or > hidden leaving only the image on the digital signature layer and nothing > else.
Obviously the text doesn't appear unless you put it there. djdjdj wrote: > However, if I look at the digital signature signing information it > contains all of the information of the signer. So, it appears > manipulating or adding an image to that layer changes the whole layer > doing it that way. Actually you can write anything into that layer. iText writes a text containing signer certificate, signing date, reason and location. You may instead write a weather forecast there. If you want to write something like iText does, you might want to be inspired by the code in PdfSignatureAppearance.getAppearance(). The signature signing information stem from the signature dictionary referenced from the signature field, not its appearance. djdjdj wrote: > Does the entire appearance have to be rebuilt from scratch at that point? > Seems pretty silly since, atleast from a code standpoint, methods dealing > with resizing are accessible from sap.Image the same as if you are > declaring a new itextsharp.text Image object. Either you use the layout the way iText produces it all by itself or you create your own, you have to decide. Regards, Michael. -- View this message in context: http://itext-general.2136553.n4.nabble.com/ItextSharp-Digital-Signature-Image-question-tp2240578p2242369.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/