Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] [{Spam???}] - Re: [{Spam?}] - Re: How to
 assign adigitalsignature to anexisting image - Bayesian
 Filter detected spam - Email found in subject

Frankinet Philippe

2006-06-15

Replies:

This image is part of the PDF.

Philippe

-----Message d'origine-----
De : itext-questions-bounces@(protected)
Envoyé : jeudi 15 juin 2006 12:58
À : Post all your questions about iText here
Objet : [{Spam???}] - Re: [iText-questions] [{Spam?}] - Re: How to assign adigitalsignature to anexisting image - Bayesian Filter detected spam - Email found in subject

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@(protected)>
To: "Post all your questions about iText here"
<itext-questions@(protected)>
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@(protected)
[mailto:itext-questions-bounces@(protected)



> -----Original Message-----
> From: itext-questions-bounces@(protected)
> [mailto:itext-questions-bounces@(protected)
> 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@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions


_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.