com.itextpdf.testutils
Class CompareTool
java.lang.Object
com.itextpdf.testutils.CompareTool
public class CompareTool
- extends Object
Helper class for tests: uses ghostscript to compare PDFs at a pixel level.
Method Summary |
String |
compare(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix)
|
String |
compare(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas)
|
String |
compareByContent(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix)
|
String |
compareByContent(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas)
|
String |
compareDocumentInfo(String outPdf,
String cmpPdf)
|
String |
compareLinks(String outPdf,
String cmpPdf)
|
String |
compareTagStructures(String outPdf,
String cmpPdf)
|
boolean |
compareXmls(byte[] xml1,
byte[] xml2)
|
boolean |
compareXmls(String xml1,
String xml2)
|
String |
compareXmp(String outPdf,
String cmpPdf)
|
String |
compareXmp(String outPdf,
String cmpPdf,
boolean ignoreDateAndProducerProperties)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompareTool
public CompareTool()
compare
public String compare(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas)
throws IOException,
InterruptedException,
DocumentException
- Throws:
IOException
InterruptedException
DocumentException
compare
public String compare(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix)
throws IOException,
InterruptedException,
DocumentException
- Throws:
IOException
InterruptedException
DocumentException
compareByContent
public String compareByContent(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas)
throws DocumentException,
InterruptedException,
IOException
- Throws:
DocumentException
InterruptedException
IOException
compareByContent
public String compareByContent(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix)
throws DocumentException,
InterruptedException,
IOException
- Throws:
DocumentException
InterruptedException
IOException
compareXmp
public String compareXmp(String outPdf,
String cmpPdf)
compareXmp
public String compareXmp(String outPdf,
String cmpPdf,
boolean ignoreDateAndProducerProperties)
compareXmls
public boolean compareXmls(byte[] xml1,
byte[] xml2)
throws ParserConfigurationException,
SAXException,
IOException
- Throws:
ParserConfigurationException
SAXException
IOException
compareDocumentInfo
public String compareDocumentInfo(String outPdf,
String cmpPdf)
throws IOException
- Throws:
IOException
compareLinks
public String compareLinks(String outPdf,
String cmpPdf)
throws IOException
- Throws:
IOException
compareTagStructures
public String compareTagStructures(String outPdf,
String cmpPdf)
throws IOException,
ParserConfigurationException,
SAXException
- Throws:
IOException
ParserConfigurationException
SAXException
compareXmls
public boolean compareXmls(String xml1,
String xml2)
throws ParserConfigurationException,
SAXException,
IOException
- Throws:
ParserConfigurationException
SAXException
IOException
Copyright © 2014. All Rights Reserved.