PdfSignatureAppearance spa = ...;
sap.setRender(PdfSignatureAppearance.SignatureRenderGraphicAndDescriptio
n);
Image img = Image.getInstance("doc/sign.jpg");
sap.setSignatureGraphic(img);
sap.setAcro6Layers(true);

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Eric Chow
> Sent: Wednesday, October 04, 2006 10:24 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Signature with Image alignment problem.
> 
> Hello,
> 
> I tried to add an image with the signature. Everything is fine but how
> can I set the alignment of the Image?
> 
> I want to locate the image at the left hand side of the 
> signature info.
> How can do it ?
> 
> I tried the following statements, but no effect.
> 
> Image img = Image.getInstance("doc/sign.jpg");
> sap.setImage(img);
> sap.setImageScale(-2F);
> img.setAlignment(Image.ALIGN_TOP);
> 
> 
> I also tried the img.setAbsolutePosition(..), also got the same result
> as in my enclosed image.
> 
> Please help.
> 
> Best regards,
> Eric
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to