Hi everyone,

I am trying to extract some information from a PDF that is called "Layer" in 
AdobeReader. It is shown as a colored background over a certain text span and 
expands to a box showing some additional information when mouse-clicked. So far 
I did the following:

I identified every of such entries on every page by:

//one page
PdfDictionary pageDict = myPdfReader.getPageN(i);

//all annotations on one page
PdfArray annotations = pageDict.getAsArray(PdfName.ANNOTS);

//one annotation on one page
PdfDictionary curAnnot = annotations.getAsDict(j);

I found out, the my annotation subtype is "/Link", and looking up the links 
dictionary (currLink.get(PdfName.S)) revealed /Javascript.

But I am stuck at this point. currLink.get(PdfName.JS) only gives me strange 
results I do not understand. They look like: "6 0 R" or "8 0 R". And the pdf 
specifications at '12.6.4.16JavaScript Actions' don't give much more 
information either.

I am interested in the text, that is displayed when the actual annotation in 
the PDF document is 'mouse clicked', so somehow I need to get to the javescript 
code, I guess. 

I am grateful for any ideas how to achieve this,


best regards,

Alex


--
Dipl. Bioinformatiker Alexander G. Klenner
Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
Schloss Birlinghoven, D-53754 Sankt Augustin
Tel.: +49 - 2241 - 14 - 2736
E-mail: [email protected]
Internet: http://www.scai.fraunhofer.de



------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
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