public virtual void NarrowPageTest02() { String testName = "narrowPageTest02.pdf"; String outFileName = destinationFolder + testName; String cmpFileName = sourceFolder + "cmp_" + testName; PdfDocument pdfDoc = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDoc); doc.SetRenderer(new KeepTogetherTest.SpecialOddPagesDocumentRenderer(doc, new PageSize(102.0F, 132.0F))); Paragraph p = new Paragraph("row 10"); Div div = new Div(); div.Add(p); div.SetKeepTogether(true); doc.Add(new Paragraph("a")); doc.Add(div); doc.Add(new AreaBreak()); div.SetHeight(30); doc.Add(new Paragraph("a")); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new AreaBreak()); div.DeleteOwnProperty(Property.HEIGHT); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new AreaBreak()); div.SetHeight(30); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , testName + "_diff")); }