djdjdj,

djdjdj wrote:
> 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.

(I assume, iTextSharp and iText essentially work identically here.)

If you merely set the PdfSignatureAppearance image attribute, you leave the
very layouting to that class, and the layouting is done by stretching the
image to fill all the field (scaled according to the imageScale attribute),
cf the method getAppearance(), if (app[2] == null) {...}. Thus, the
behaviour you report is to be expected. If you want to layout it by
yourself, you can do so by requesting the appropriate layer (layer 2, I
presume) and edit it according to your preferences.

Regards,   Michael.

PS: Quite a similar question was asked very recently, cf.
http://itext-general.2136553.n4.nabble.com/PdfSignatureAppearance-question-tt2234549.html
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/ItextSharp-Digital-Signature-Image-question-tp2240578p2241676.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/

Reply via email to