Have a look at the source code of AcroFields. Paulo
----- Original Message ----- From: "Krishna G" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <[email protected]> Sent: Monday, June 05, 2006 8:09 PM Subject: [iText-questions] How to set font type and size in pdf form > > Hello, > I have an application that does taggining in pdf > forms. It reads 2 pdf forms, one is tagged and the > other one untagged and generating a resulting form > whose all fields are tagged. I want the fonttype and > font size of the reuslting pdf same as that of the > original one which is tagged. i.e. i need to read the > font type and size of the original pdf and apply that > to the resulting pdf. > I tried listing the fields of the resulting pdf using > ListFields(obtained from Paulo Soares website). Using > PdfObject = (PdfObject) dictionary.get(PdfName) I > managed to get the font type and size as a string. How > will I set the font type and size of a filed if the > values are strings? As of my undersatning > setFontAndSize(baseFont, fontSize) sets the font type > and size of the text font( not the field value text) > in the pdf, am I correct? > If so how will I set the font for the filed? > > Thanks and Regards > Krishna > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
