You need to get a copy of ISO 32000-1:2008, the PDF and start reading.  You 
need to understand the various places where such things live and then go find 
those specific objects.

You could iterate over ALL objects, but that's certainly not going to be high 
performing.

Leonard

-----Original Message-----
From: webtrol [mailto:[email protected]] 
Sent: Friday, March 04, 2011 3:49 PM
To: [email protected]
Subject: Re: [iText-questions] detecting presence of Javascript and OpenActions 
in PDF

Question 1:
 Do you know the answer to the first question: Does reader.getJavaScript()
return all the JS in the file?

Question 2:
Do you have best recommendation on method of doing it.
Remember I'm only interested in detecting not in making any changes.
I was considering:
Getting the number of objects using:   reader.getXrefSize() 
Then in the loop examining all the objects. I'm still researching how to
process different object types.(would be greatfull for any suggestions).

Any suggestions, hints, and code very welcome.

Thank you for your patiance with a new user.

Sincerely,
Trol





--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/detecting-presence-of-Javascript-and-OpenActions-in-PDF-tp3335723p3335914.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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