@Test
public void tabColumnTextTest() throws Exception {

    Font f = FontFactory.getFont(FontFactory.COURIER, 11);
    Document doc = new Document();
    Paragraph p;
    FileOutputStream fs = new FileOutputStream(OUTABC);
    PdfWriter writer = PdfWriter.getInstance(doc, fs);
    writer.setCompressionLevel(0);
    doc.open();
    ColumnText ct = new ColumnText(writer.getDirectContent());
    ct.setSimpleColumn(36, 36, 436, 800);
    java.util.List<TabStop> tabStopsList = new ArrayList<TabStop>();
    tabStopsList.add(new TabStop(100, new DottedLineSeparator()));
    tabStopsList.add(new TabStop(200, new LineSeparator(), TabStop.Alignment.CENTER));
    tabStopsList.add(new TabStop(300, new DottedLineSeparator(), TabStop.Alignment.RIGHT));
    p = new Paragraph(new Chunk("Hello world", f));
    p.setTabSettings(new TabSettings(tabStopsList, 50));
    addTabs(p, f, 0, "la|la");
    ct.addElement(p);
    tabStopsList = new ArrayList<TabStop>();
    tabStopsList.add(new TabStop(100, new DottedLineSeparator()));
    tabStopsList.add(new TabStop(200, new LineSeparator(), TabStop.Alignment.ANCHOR));
    tabStopsList.add(new TabStop(300, new DottedLineSeparator(), TabStop.Alignment.ANCHOR));
    p = new Paragraph(new Chunk("Hello World!!!"));
    p.setTabSettings(new TabSettings(tabStopsList, 50));
    addTabs(p, f, 12, "l.aal");
    addTabs(p, f, 12, "laa.l");
    addTabs(p, f, 12, "la.al");
    ct.addElement(p);
    f.setSize(16);
    p = new Paragraph(new Chunk("Hello world", f));
    tabStopsList = new ArrayList<TabStop>();
    tabStopsList.add(new TabStop(100, new DottedLineSeparator()));
    tabStopsList.add(new TabStop(200, new LineSeparator(), TabStop.Alignment.ANCHOR, ','));
    tabStopsList.add(new TabStop(300, new DottedLineSeparator(), TabStop.Alignment.ANCHOR));
    p.setTabSettings(new TabSettings(tabStopsList, 50));
    addTabs(p, f, 15, "l.aal");
    addTabs(p, f, 13, "laa,l");
    addTabs(p, f, 13, "laa.l");
    addTabs(p, f, 13, "l,aal");
    ct.addElement(p);
    f = FontFactory.getFont(FontFactory.TIMES_ROMAN, 12);
    p = new Paragraph(new Chunk("Hello world", f));
    p.setTabSettings(new TabSettings(38));
    addTabs(p, f, 0);
    ct.addElement(p);
    f.setSize(20);
    p = new Paragraph(new Chunk("Hello world", f));
    p.setTabSettings(new TabSettings(38));
    addTabs(p, f, 0);
    ct.addElement(p);
    ct.go();
    doc.close();
    fs.close();
    Assert.assertTrue(compareInnerText(SOURCE14, OUTABC));
}