As Bruno said, the problem now is how to get the indirect reference... But what i need is not to get the image (or a copy) but to bind to this image : add the digital signature to the PDF and link the digital signature to an existing image.
Any idea ? Philippe. -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Paulo Soares Envoyé : mercredi 14 juin 2006 11:54 À : Post all your questions about iText here Objet : [{Spam?}] - Re: [iText-questions] How to assign a digital signature to anexisting image - Bayesian Filter detected spam > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > bruno > Sent: Wednesday, June 14, 2006 9:19 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] How to assign a digital signature to an > existing image > > Frankinet Philippe wrote: > > > I'm using this code to assign a graphic element to my > digital signature. > > > > ... > > PdfSignatureAppearance sap = stamper.getSignatureAppearance(); > > sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 1, null); > > sap.setImage(image); .... > > > > Is there a way to assign the digitial signature to an > existing image ? > > You mean with an image that is already present in the original PDF as > an Image XObject? That's not possible with the current iText API. Yes, it's possible. See Image.getInstance(PRIndirectReference ref). I'm not sure if it made it into 1.4.1 or if it's only in the CVS. Paulo 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. _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
