I have written two methods...the first one just takes a String and underline 
it...then the third one creates a bullet!!!! but now I want to be able to align 
the text so that the bullets is not closer to the lext. the underline text must 
be further away from the bullet
   


public static List createUnderLinedTextWithBullets(String text) {
        Chunk chunk = new Chunk(text);
        chunk.setUnderline(UNDERLINER_SIZE, UNDERLINE_POSITION);
        return getUnorderdList(chunk);
    }

    private static List getUnorderdList(Chunk... chunks) {
        //false - do not use numbering
        List list = new List(false, DEFAULT_LIST_SYMBOL_INDENT);
        list.setListSymbol(new Chunk((char) 127));
        for (Chunk chunk : chunks) {
            list.add(new ListItem(chunk));
        }
        return list;
    }

-------------------------------------------------------------------------
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

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to