Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Stamp Annotation from image...

Paulo Soares

2006-08-10

Replies:

Create the stamp with PdfAnnotation.createStamp(). Create the FormXObject
with writer.getDirectContent().createTemplate() with the dimensions you gave
in createStamp(). Pute image inside the template. Set the template with
PdfAnnotation.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, template). You
can leave out the popup (I think).

Paulo

----- Original Message -----
From: "Alan" <alankeown@(protected)>
To: "'Post all your questions about iText here'"
<itext-questions@(protected)>
Sent: Friday, August 11, 2006 1:18 AM
Subject: Re: [iText-questions] Stamp Annotation from image...


>
> Thanks Paulo,
> What I can't work out is
> do I create the FormXObject (somehow) and set that as the /N value
> OR
> can I just create the text.Image and set that as the /N Value
>
> Also - Is it okay to leave the PopUp Annot off or does it have to be
> there?
>
> Cheers
> AlanK
>
> -----Original Message-----
> From: itext-questions-bounces@(protected)
> [mailto:itext-questions-bounces@(protected)
> Soares
> Sent: Thursday, 10 August 2006 7:10 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Stamp Annotation from image...
>
>
>
> ----- Original Message -----
> From: "Alan" <alankeown@(protected)>
> To: "'Post all your questions about iText here'"
> <itext-questions@(protected)>
> Sent: Thursday, August 10, 2006 6:35 AM
> Subject: [iText-questions] Stamp Annotation from image...
>
>
>> In Acrobat 7 I can copy an image to the clipboard and then use the "Paste
>> Clipboard Image as Stamp Tool" to paste an image inside an annotation.
>> Does
>> anyone have any clues on how to achieve the same, or similar, effect with
>> iText?
>>
>
> Create a stamp and put the image in the /N appearance.
>
> Paulo
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> iText-questions mailing list
> iText-questions@(protected)
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> iText-questions mailing list
> iText-questions@(protected)
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.