Hi Balder,

thanks for your answer, but I still cannot resolve this. Following the 
documentation about Indirect Objects those, that have a '0' as their generation 
Number reside in object streams. I tried:
currLink.getAsStream(PdfName.JS); which does not return "null". I think that's 
good, since the method finds an actual stream that is successfully cast down. 
Now I am not sure what to do with this stream object.
Testing for keys gave me [/Length, /Filter] and printing the LENGTH key shows 
that I have streams of different sizes, so I am working on different objects, 
also long annotations in the pdf produce long streams and short annotation 
short streams.Yet, I don't know what to do with these Streams, is there an easy 
way to convert them back to human readable strings? I am still expecting 
JavaScriptCode at some point. 

Thank you,

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


----- Original Message -----
From: "Balder VC" <[email protected]>
To: [email protected]
Sent: Friday, August 26, 2011 10:55:44 AM
Subject: Re: [iText-questions] java script content


On 26/08/2011 10:46, Alexander Klenner wrote: 

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. The 6 0 R or 8 0 R are indirect references to 'objects" 
defined somewhere else in the PDF. (read the section about syntax in the PDF 
spec section 7.3.10 Indirect objects ) 
You should get the real object. Don't try the get method of PDfDictionary but 
try another getAs... method this should resolve the indirect reference. 


Regards 
Balder 


-- 

redlab-log 
@redlabbe 
------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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