@Test
public void tabspaceColumnTextTest() throws Exception {

    Font f = FontFactory.getFont(FontFactory.COURIER, 11);
    Document doc = new Document();
    Paragraph p;
    FileOutputStream fs = new FileOutputStream(OUTABSPACEC);
    PdfWriter writer = PdfWriter.getInstance(doc, fs);
    writer.setCompressionLevel(0);
    doc.open();
    ColumnText ct = new ColumnText(writer.getDirectContent());
    ct.setSimpleColumn(36, 36, 436, 800);
    p = new Paragraph(new Chunk("Hello world", f));
    addTabspaces(p, f, 0);
    ct.addElement(p);
    p = new Paragraph(new Chunk("Hello World!!!"));
    addTabspaces(p, f, 0);
    ct.addElement(p);
    f.setSize(16);
    p = new Paragraph(new Chunk("Hello world", f));
    addTabspaces(p, f, 0);
    ct.addElement(p);
    f = FontFactory.getFont(FontFactory.TIMES_ROMAN, 12);
    p = new Paragraph(new Chunk("Hello world", f));
    addTabspaces(p, f, 0);
    ct.addElement(p);
    f.setSize(20);
    p = new Paragraph(new Chunk("Hello world", f));
    addTabspaces(p, f, 0);
    ct.addElement(p);
    ct.go();
    doc.close();
    fs.close();
    Assert.assertTrue(compareInnerText(SOURCE12, OUTABSPACEC));
}