@@ -1274,6 +1274,34 @@ public virtual void TableWithHeaderFooterTest16() {
12741274 , testName + "_diff" ) ) ;
12751275 }
12761276
1277+ /// <exception cref="System.IO.IOException"/>
1278+ /// <exception cref="System.Exception"/>
1279+ [ NUnit . Framework . Ignore ( "DEVSIX-1320" ) ]
1280+ [ NUnit . Framework . Test ]
1281+ public virtual void TableWithHeaderFooterTest17 ( ) {
1282+ String testName = "tableWithHeaderFooterTest17.pdf" ;
1283+ String outFileName = destinationFolder + testName ;
1284+ String cmpFileName = sourceFolder + "cmp_" + testName ;
1285+ PdfDocument pdfDoc = new PdfDocument ( new PdfWriter ( outFileName ) ) ;
1286+ Document doc = new Document ( pdfDoc ) ;
1287+ String textByron = "When a man hath no freedom to fight for at home,\n " + " Let him combat for that of his neighbours;\n "
1288+ + "Let him think of the glories of Greece and of Rome,\n " + " And get knocked on the head for his labours.\n "
1289+ + "\n " + "To do good to Mankind is the chivalrous plan,\n " + " And is always as nobly requited;\n "
1290+ + "Then battle for Freedom wherever you can,\n " + " And, if not shot or hanged, you'll get knighted." ;
1291+ Table table = new Table ( 2 ) ;
1292+ table . SetKeepTogether ( true ) ;
1293+ int bigRowspan = 5 ;
1294+ table . AddCell ( new Cell ( bigRowspan , 1 ) . Add ( "Big cell" ) . SetBorder ( new SolidBorder ( Color . GREEN , 20 ) ) ) ;
1295+ for ( int i = 0 ; i < bigRowspan ; i ++ ) {
1296+ table . AddCell ( i + " " + textByron ) ;
1297+ }
1298+ doc . Add ( new Paragraph ( "Try to break me!" ) ) ;
1299+ doc . Add ( table ) ;
1300+ doc . Close ( ) ;
1301+ NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( outFileName , cmpFileName , destinationFolder
1302+ , testName + "_diff" ) ) ;
1303+ }
1304+
12771305 /// <exception cref="System.IO.IOException"/>
12781306 /// <exception cref="System.Exception"/>
12791307 [ NUnit . Framework . Test ]
0 commit comments