ralphcook wrote: > This was good information. I adapted the first example to my own program, > and it is close to working, and OH it is SO much faster and smaller and less > memory-intensive than the other way.
That was to be expected: it's more code, but you are handling things on a much lower level, hence the speed and the memory friendliness. > 1) how can I show all my fields, preferably doing both multiline and > part-of-line fields the same way so they will wrap when necesssary without > my having to keep track of which field is multiline and which isn't. I'd use ColumnText. First: if you are using ColumnText in "text mode" (as opposed to "composite mode"; please read the book to find out the difference), you can change the leading of the text. Maybe your problem could be solved by reducing the leading. Second: there's a method you can call after go() that returns the number of lines that has been sent to the output. If it returns 0, you could switch to showTextAligned (or tune the ColumnText so that it returns 1 for single line data). > 2) Assuming I can use ColumnText for that, how can I set font and size for > ColumnText fields; the methods as shown in the online javadoc didn't have a > way to do that that I saw. Define the font in the Phrase you are passing to ColumnText. If you need different fonts in the same field; switch from "text mode" to "composite mode". > (p.s. a brief aside: the download link for downloading the iText javadoc > gave me a 404 error this afternoon, in case someone's reading who can fix > that.) Bruno was making a new release, among other things he replaced the javadoc API; you must have caught him in the act ;-) > Thanks for the tip (two-pronged tip?) I got from 1T3XT; it really did help. > After I'm finished with what I'm doing, I intend to post it back here for > others to see. I think this stuff can be explained better, or at least > more. Bruno is working on more examples that will be provided on http://www.1t3xt.info/ Note that there are plenty of examples in the book he wrote: http://www.1t3xt.com/docs/book.php I would certainly recommend chapter 7 to solve some of your problems. By the way: as you are not subscribed to the mailing-list, I sent you the answer in Cc: However, your company's SPAM filter rejected the mails from three different addresses using different mail servers. That's heavy; don't you miss plenty of important mails that way? -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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/
