On 18/11/2010 21:04, kpgraci wrote:
>
> I have pdf files with formatting applied to some of the fileds and I want to
> remove that formatting.
>
> Below I list the routine I use to inspect the format and get the javascript
> name and therefore determine the type of formatting - although this is not
> important as all I want to do is remove the formatting.
>
> While I am a novice with iText and PDF in general, I see that AA's are used
> to specify the format, so I guess I want to remove the AA associated with
> the field, or perhaps remove the javascript, or even perhaps modify the
> javascript to return the data unformatted - whatever...
>
> How would I remove the formatting form fields?

AA stands for Additional Actions.
These actions are triggered by events, such as "get focus", "blur", 
"keystroke", and so on.
As you found out, these triggers/actions are used to format a field. You 
can remove this formatting by remove the AA entry.

Of course: this doesn't remove the JavaScript in the PDF, but maybe 
that's not an issue for you: it doesn't hurt anybody; the only "problem" 
is that the JavaScripts adds some bytes to the file size.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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