What about fields with other types of actions, other than JavaScript? Do you care about those?
Leonard On 1/23/12 5:58 AM, "foru...@smartmobili.com" <foru...@smartmobili.com> wrote: >Hi, > >I am trying to get actions associated to a field, for now I can see the >different dictionaries keys but >cannot see the corresponding values in plain text, it seems to be some >kind of reference. >What I would like to see is something like : > >/AA > /C => Some javascript code > /F => Some javascript code > /K => Some javascript code > > >foreach (var kvp in dic) > { > string keyName = kvp.Key.ToString(); > System.Diagnostics.Debug.WriteLine(string.Format("\tName : >{0} - Type : {1}", keyName, >iTextSharpHelper.GetPdfObjectType(kvp.Value))); > if (keyName.Equals("/AA")) > { > PdfDictionary dicField = kvp.Value as PdfDictionary; > if (dicField != null) > { > foreach (KeyValuePair<PdfName, PdfObject> obj in >dicField) > { > // how am I supposed to get javascript code ??? > } > } > } > } > >My problem is that I would like to be able to know if the field I am >trying to fill is a "normal" field or >some kind of field with javascript. > >-------------------------------------------------------------------------- >---- >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >iText-questions mailing list >iText-questions@lists.sourceforge.net >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 ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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