Paul Gatewood wrote: > Scott McKenzie wrote: >> Is there a way to embed bolding and italics at a word level within a text >> field being placed in a PDF document. I know how to set the enitre piece of >> text but I'n not sure about setting at a more >> granular level. > > Can't you just do this using com.lowagie.text.Chunk?
I think the original poster is referring to a text field in an AcroForm (although he is not clear about this). Of course having something bold in a text field of a PDF that has to behave as a real form is a little bit non sense: the style would be lost upon submitting the form. Just think of the usefulness of having some a more granular control over the content of some text in an HTML form. What would be the use of that? Of course, if the form is used only as a placeholder, and the original poster wants to flatten the form anyway, then it is perfectly possible to use a phrase or paragraph with Chunks in different styles. Wrap all this in a ColumnText object, use the coordinates of the field as column borders and you're done. However, the question was too vague to answer. br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
