I am trying to expand the horizontal length/width of underlined text. Basically, if I want the text ABC underlined and the line under ABC is normally 10 pixels. I want to increase that width to 100 pixels, possibly if ABC is centered over the line. final Font fontBlurbWithUnderline = new Font(Font.HELVETICA, 7, Font.UNDERLINE); final PdfPCell c2 = new PdfPCell(); final Chunk chunkBuildPrem = new Chunk(strn(9, " ") + "Builders + strn(8, "\t\n\r \b"), fontBlurbWithUnderline); chunkBuildPrem.setUnderline(0.1f, 2.0f); final Phrase ph2 = new Phrase(chunkBuildPrem);
With the code above I tried adding additional spaces to the end of the string, but apparently iText does a righttrim Is there anyway to change the/hardcode the width of the chunk chunk.setWidth or setBorderHorizontalLineLength = 100 Berlin Brown (POL) ------------------------------------------------------------------------------ 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/