Op 24/02/2011 17:15, fachhoch schreef:
> what I saw in the example was good , I am looking  for popup message , I
> tried creating one , here is the code
>
>                       PdfReader  pdfReader= new PdfReader(pdfIn);
>                       ByteArrayOutputStream  pdfOut= new 
> ByteArrayOutputStream();
>                       PdfStamper  pdfStamper= new PdfStamper(pdfReader, 
> pdfOut);
>                       PdfWriter  pdfWriter=pdfStamper.getWriter();
>                       
> pdfStamper.addAnnotation(PdfAnnotation.createPopup(pdfWriter, new
> Rectangle(200f,500f,300f,600f), "Saibaba", true),1);
>
>
>
>
> this code complies , but  when I try to open generated pdf it  complains
>
>
> Adobe reader could not open Report.pdf becasue it is either not supported
> file..........etc
>
> Please help me is there any simple example adding a popup , my pdf is just a
> table it  has no form , please advice me

Using nothing but createPopup won't work.
Did you read the book or ISO-32000-1?
A popup annotation needs a "parent".
You need more code to achieve what you want;
see the createPopup() method in http://1t3xt.be/?123
and take a look at the result:
http://examples.itextpdf.com/results/part2/chapter07/movie_posters_2.pdf

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to