Kish, Chris wrote: > Hi folks, > > I am using code similar to the following to create a PDF outline. > Although colors and bold/italics work, I noticed that the underline > option is ignored, as is the "Courier" setting. Is it possible to set > the *font*, *font* size, etc, perhaps using methods beyond what I've > done here?
If you have read the book about iText, you'll have noticed that it was a bad decision dating from almost 10 years ago to see "underline" as a property of a "font". You should use the method Chunk.setUnderline() if you want to underline part of your text. This is explained in the book. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
