slon wrote: > Hello, i am making a simple WYSIWYG-like tool for Acroforms, and need to draw > Multilinetext from PDF "TextField" on the screen so, as it really is in PDF. > I also need to draw baselines right, to show user how will it be in Acroform. > All information i need, i can calculate from Font object. All except a first > offset from Top of the bounding rectangle. This offset depends from Font and > Fontsize. May be somebody knows how can i calculate this offset. Or may be i > can change thees offset from iText? > > I would be grateful for any help(-:
I fear the concept of "baseline" in PDF Forms is problematic. It has been changed over different versions of Adobe Acrobat/Reader. I don't think there's a "ready made" formula that will give you this offset; and there's no way to change the offset of content in an AcroForm field. You'll have to use trial and error; and choose the solution that matches the final result as close as possible. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/