Add the keys yourself - they are just strings...

Also, be aware that that check is ONLY checking document-level actions, but 
that PDF/A disallows those actions EVERYWHERE that Actions are allowed (of 
which there are many).

Leonard


On 6/9/09 4:07 PM, "Tobias van Treeck" <[email protected]> wrote:

My question/remark is that there are certain keys missing:

For instance i can check wether the openaction contains javascript (code is 
shortened):

root.get(PdfName.OPENACTION).get(PdfName.S).equals(PdfName.JAVASCRIPT)

However i can not do the following because there are no such keys:

root.get(PdfName.OPENACTION).get(PdfName.S).equals(PdfName.MOVIE)
root.get(PdfName.OPENACTION).get(PdfName.S).equals(PdfName.SOUND)

I want to check it since PDF/A ISO defines it this way:

"The Launch, Sound, Movie, ResetForm, ImportData and JavaScript actions shall 
not be permitted."

Regards,
ToM


2009/6/9 1T3XT info <[email protected]>
Tobias van Treeck wrote:
> Or is there another way to detect which pdf objects are in violation of
> the PDF/A standard (with iText)?

You use iText to retrieve dictionaries, then you check certain keys
of that dictionary. You probably check keys with a PdfName as value.

OK, so far, so good, but what exactly is your question?
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/



--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to