@Test
public void TabStopOutOfPageBoundDocumentTest() throws DocumentException, IOException {

    Document doc = new Document(PageSize.A4, 36, 36, 0, 30);
    PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(OUTFOLDER + "/tabStopOutDocument.pdf"));
    doc.open();
    Font f = FontFactory.getFont(FontFactory.COURIER, 11);
    f.setSize(16);
    Paragraph p = new Paragraph(Chunk.TABBING);
    p.add(new Chunk("Hello world", f));
    ArrayList<TabStop> tabStopsList = new ArrayList<TabStop>();
    tabStopsList.add(new TabStop(1000, new DottedLineSeparator()));
    tabStopsList.add(new TabStop(1050, new LineSeparator(), TabStop.Alignment.ANCHOR, ','));
    tabStopsList.add(new TabStop(1100, 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");
    doc.add(p);
    doc.close();
    writer.close();
    Assert.assertTrue(compareInnerText(SOURCE16, OUTFOLDER + "/tabStopOutDocument.pdf"));
}