I have code that fills in fields in a PDF form, it works fine. I can fill each field, I can align each field as either left or center, THAT works fine.
I have trouble determining, from the information in the form, when a field is designated as aligned for center or left (I don't have any need to do right-align at this time). The nearest field attribute/characteristic/whatever it is called in AcroFields I could find was "/Q", though that seems to reference justification, not alignment. I wrote code that detects what the value of Q is and sets alignment according to it, but that doesn't match alignment for some fields. I had fields in this form that used to be centered, the person who maintains the forms has changed these fields to say they are left-aligned, I can bring up the form in PDF reader and click in them, and my cursor is left aligned, but when I read the info for the field, /Q indicates data for the field indicating it is supposed to be centered. I can't find where alignment might otherwise be given. Can someone please point me to the place, or to a place where the place is explained? To restate, I want the information on the field in a form to say what alignment it is supposed to have, and know how to read that in iText so I can put the same alignment on the field. rc -- View this message in context: http://www.nabble.com/want-to-detect-field-alignment-when-filling-in-a-form-tp16852535p16852535.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
