[{Spam?}] - How to assign a digitalsignature to anexisting image - Bayesian Filter detected spam
- From: "Paulo Soares" <psoares (at) consiste.pt>
- Date: Thu, 15 Jun 2006 11:57:47 +0100
Where is the existing image? If it's not already in the pdf and it's not on
file, then where?
Paulo
----- Original Message -----
From: "Frankinet Philippe" <p.frankinet (at) nsi-sa.be>
To: "Post all your questions about iText here"
<itext-questions (at) lists.sourceforge.net>
Sent: Thursday, June 15, 2006 9:35 AM
Subject: Re: [iText-questions] [{Spam?}] - Re: How to assign a
digitalsignature to anexisting image - Bayesian Filter detected spam
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 : itext-questions-bounces (at) lists.sourceforge.net
[mailto:itext-questions-bounces (at) lists.sourceforge.net] 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: itext-questions-bounces (at) lists.sourceforge.net
> [mailto:itext-questions-bounces (at) lists.sourceforge.net] 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
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions