> You misunderstood my point... No i didn't. Maybe i didn't explain it enough
> You are only looking at Actions that appear at the document level. That was my explicit intention! > But Actions can also appear at the Page level, the Annotation level, the > Widget > level, the Bookmark level, etc. You need to be looking for actions in each > and every one of these places. I know that but that wasn't the scope... ToM > > Leonard > > > > Hi Leonard, > > 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). > > Yes i know. My intention is to specifically remove the document level > actions. According to pdf spec i identified 3 places for document level > actions: > > 1. 'JavaScript' key in the name dictionary > 2. 'AA' key in the catalog dictionary > 3. 'OpenAction' key in the catalog dictionary > > Or do you know some more? > > Regards, > ToM > > > Leonard > > > > > 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] <http://[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] > <http://[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/ > ------------------------------------------------------------------------------ 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/
