@@ -504,6 +504,71 @@ public virtual void CleanUpTest39() {
504504 CompareByContent ( cmp , output , outputPath , "diff_39" ) ;
505505 }
506506
507+ /// <exception cref="System.IO.IOException"/>
508+ /// <exception cref="System.Exception"/>
509+ [ NUnit . Framework . Test ]
510+ public virtual void CleanUpTest40 ( ) {
511+ String input = inputPath + "emptyTj01.pdf" ;
512+ String output = outputPath + "emptyTj01.pdf" ;
513+ String cmp = inputPath + "cmp_emptyTj01.pdf" ;
514+ IList < PdfCleanUpLocation > cleanUpLocations = iText . IO . Util . JavaUtil . ArraysAsList ( new PdfCleanUpLocation ( 1 ,
515+ new Rectangle ( 70f , 555f , 200f , 5f ) , ColorConstants . ORANGE ) ) ;
516+ CleanUp ( input , output , cleanUpLocations ) ;
517+ CompareByContent ( cmp , output , outputPath , "diff_40" ) ;
518+ }
519+
520+ /// <exception cref="System.IO.IOException"/>
521+ /// <exception cref="System.Exception"/>
522+ [ NUnit . Framework . Test ]
523+ public virtual void CleanUpTest41 ( ) {
524+ String input = inputPath + "newLines01.pdf" ;
525+ String output = outputPath + "newLines01.pdf" ;
526+ String cmp = inputPath + "cmp_newLines01.pdf" ;
527+ IList < PdfCleanUpLocation > cleanUpLocations = iText . IO . Util . JavaUtil . ArraysAsList ( new PdfCleanUpLocation ( 1 ,
528+ new Rectangle ( 70f , 555f , 200f , 10f ) , ColorConstants . ORANGE ) ) ;
529+ CleanUp ( input , output , cleanUpLocations ) ;
530+ CompareByContent ( cmp , output , outputPath , "diff_41" ) ;
531+ }
532+
533+ /// <exception cref="System.IO.IOException"/>
534+ /// <exception cref="System.Exception"/>
535+ [ NUnit . Framework . Test ]
536+ public virtual void CleanUpTest42 ( ) {
537+ String input = inputPath + "newLines02.pdf" ;
538+ String output = outputPath + "newLines02.pdf" ;
539+ String cmp = inputPath + "cmp_newLines02.pdf" ;
540+ IList < PdfCleanUpLocation > cleanUpLocations = iText . IO . Util . JavaUtil . ArraysAsList ( new PdfCleanUpLocation ( 1 ,
541+ new Rectangle ( 36f , 733f , 270f , 5f ) , ColorConstants . ORANGE ) ) ;
542+ CleanUp ( input , output , cleanUpLocations ) ;
543+ CompareByContent ( cmp , output , outputPath , "diff_42" ) ;
544+ }
545+
546+ /// <exception cref="System.IO.IOException"/>
547+ /// <exception cref="System.Exception"/>
548+ [ NUnit . Framework . Test ]
549+ public virtual void CleanUpTest43 ( ) {
550+ String input = inputPath + "newLines03.pdf" ;
551+ String output = outputPath + "newLines03.pdf" ;
552+ String cmp = inputPath + "cmp_newLines03.pdf" ;
553+ IList < PdfCleanUpLocation > cleanUpLocations = iText . IO . Util . JavaUtil . ArraysAsList ( new PdfCleanUpLocation ( 1 ,
554+ new Rectangle ( 36f , 733f , 230f , 5f ) , ColorConstants . ORANGE ) ) ;
555+ CleanUp ( input , output , cleanUpLocations ) ;
556+ CompareByContent ( cmp , output , outputPath , "diff_43" ) ;
557+ }
558+
559+ /// <exception cref="System.IO.IOException"/>
560+ /// <exception cref="System.Exception"/>
561+ [ NUnit . Framework . Test ]
562+ public virtual void CleanUpTest44 ( ) {
563+ String input = inputPath + "emptyTj02.pdf" ;
564+ String output = outputPath + "emptyTj02.pdf" ;
565+ String cmp = inputPath + "cmp_emptyTj02.pdf" ;
566+ IList < PdfCleanUpLocation > cleanUpLocations = iText . IO . Util . JavaUtil . ArraysAsList ( new PdfCleanUpLocation ( 1 ,
567+ new Rectangle ( 70f , 565f , 200f , 5f ) , ColorConstants . ORANGE ) ) ;
568+ CleanUp ( input , output , cleanUpLocations ) ;
569+ CompareByContent ( cmp , output , outputPath , "diff_44" ) ;
570+ }
571+
507572 /// <exception cref="System.IO.IOException"/>
508573 private void CleanUp ( String input , String output , IList < PdfCleanUpLocation > cleanUpLocations ) {
509574 PdfDocument pdfDocument = new PdfDocument ( new PdfReader ( input ) , new PdfWriter ( output ) ) ;
0 commit comments