lukasjob wrote: > Hi everyone, I used a pdf template with a few AcroFields in my project, I > have 3 AcroFields spanning the entire page one after the other containing > some text, I need to justify the text to a fixed length, say if I want each > line of text in the acrofield to be of size 150 characters. > How can I do that?
Look up the COMB property. Would that solve your problem? (Maybe, maybe not. The comb property is used for instance to fill in bank account numbers on a document to wire money: these forms have preprinted squares: 1 square per number. If that's what you need, the COMB property is the answer.) > I tried to justify the text with a function and then pass the strings to the > fields but though I have 3 strings of the same size they are of different > size in the final pdf. That's normal if you're using a proportional font. If the COMB property doesn't meet your requirement, you should use a monospace font (e.g. Courier). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/