com.itextpdf.text.pdf
Class CompareTool

java.lang.Object
  extended by com.itextpdf.text.pdf.CompareTool

public class CompareTool
extends Object

Helper class for tests: uses ghostscript to compare PDFs at a pixel level.


Constructor Summary
CompareTool(String outPdf, String cmpPdf)
           
 
Method Summary
 String compare(String outPath, String differenceImage)
           
 String compare(String outPdf, String cmpPdf, String outPath, String differenceImage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareTool

public CompareTool(String outPdf,
                   String cmpPdf)
Method Detail

compare

public String compare(String outPath,
                      String differenceImage)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException

compare

public String compare(String outPdf,
                      String cmpPdf,
                      String outPath,
                      String differenceImage)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2013. All Rights Reserved.