Matthew Hawkins wrote: > Hi, > > I have tried without success to find how to get the formatting style on > an AcroField. > > First - I create my Open Office Document with a Text Field - I set the > formatting to "Date", and select the "DD MMMM YYYY" Option. I know that > no text is auto formatted by iText so what I want to do is retrieve the > formatting code from the PDF, do the formatting myself, and set the > field appropriately. I cannot find anywhere where I can get the code. > > As an alternative, Open Office provides an "Additional Information" on > the Field - but I can't find where this is either on iText! Any help > would be much appreciated.
Formatting is done using JavaScript, so you have to look at the additional actions that are added to the field's dictionary. If you follow the indirect references, you'll find a stream that has the JS doing the formatting. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ 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/
