Skip to main content
Skip table of contents

CompareTool (1)

CompareTool Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.testutils
  iTextSharp.testutils.CompareTool[[CompareTool]]
  end

Members

Methods

Public methods
ReturnsName
stringCompare(...)
boolCompareArrays(PdfArray outArray, PdfArray cmpArray)
boolCompareBooleans(PdfBoolean outBoolean, PdfBoolean cmpBoolean)
stringCompareByContent(...)
boolCompareContentStreamsByParsing(...)
boolCompareDictionaries(PdfDictionary outDict, PdfDictionary cmpDict)
stringCompareDocumentInfo(string outPdf, string cmpPdf)
stringCompareLinks(string outPdf, string cmpPdf)
boolCompareLiterals(PdfLiteral outLiteral, PdfLiteral cmpLiteral)
boolCompareNames(PdfName outName, PdfName cmpName)
boolCompareNumbers(PdfNumber outNumber, PdfNumber cmpNumber)
boolCompareStreams(PRStream outStream, PRStream cmpStream)
boolCompareStrings(PdfString outString, PdfString cmpString)
boolCompareXmls(byte``[] xml1, byte``[] xml2)
stringCompareXmp(...)
stringGetXmlReportName()
CompareToolSetCompareByContentErrorsLimit(int compareByContentMaxErrorCount)
CompareToolSetFloatAbsoluteError(float error)
CompareToolSetFloatRelativeError(float error)
voidSetGenerateCompareByContentXmlReport(bool generateCompareByContentXmlReport)
voidSetXmlReportName(string reportName)

Details

Nested types

Classes
  • ObjectPath
  • CompareResult

Constructors

CompareTool

Source code

public CompareTool()

Methods

Compare [1/2]

Source code

public virtual string Compare(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix, IDictionary<int, IList<Rectangle>> ignoredAreas)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf
stringoutPath
stringdifferenceImagePrefix
IDictionary<int, IList<Rectangle>>ignoredAreas
Compare [2/2]

Source code

public virtual string Compare(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf
stringoutPath
stringdifferenceImagePrefix
SetCompareByContentErrorsLimit

Source code

public virtual CompareTool SetCompareByContentErrorsLimit(int compareByContentMaxErrorCount)
Arguments
TypeNameDescription
intcompareByContentMaxErrorCount
SetGenerateCompareByContentXmlReport

Source code

public virtual void SetGenerateCompareByContentXmlReport(bool generateCompareByContentXmlReport)
Arguments
TypeNameDescription
boolgenerateCompareByContentXmlReport
SetFloatAbsoluteError

Source code

public CompareTool SetFloatAbsoluteError(float error)
Arguments
TypeNameDescription
floaterror
SetFloatRelativeError

Source code

public CompareTool SetFloatRelativeError(float error)
Arguments
TypeNameDescription
floaterror
SetXmlReportName

Source code

public void SetXmlReportName(string reportName)
Arguments
TypeNameDescription
stringreportName
GetXmlReportName

Source code

public string GetXmlReportName()
CompareByContent [1/2]

Source code

public virtual string CompareByContent(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix, IDictionary<int, IList<Rectangle>> ignoredAreas)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf
stringoutPath
stringdifferenceImagePrefix
IDictionary<int, IList<Rectangle>>ignoredAreas
CompareByContent [2/2]

Source code

public virtual string CompareByContent(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf
stringoutPath
stringdifferenceImagePrefix
CompareDictionaries

Source code

public bool CompareDictionaries(PdfDictionary outDict, PdfDictionary cmpDict)
Arguments
TypeNameDescription
PdfDictionaryoutDict
PdfDictionarycmpDict
CompareContentStreamsByParsing [1/2]

Source code

public bool CompareContentStreamsByParsing(PdfObject outObj, PdfObject cmpObj)
Arguments
TypeNameDescription
PdfObjectoutObj
PdfObjectcmpObj
CompareContentStreamsByParsing [2/2]

Source code

public bool CompareContentStreamsByParsing(PdfObject outObj, PdfObject cmpObj, PdfDictionary outResources, PdfDictionary cmpResources)
Arguments
TypeNameDescription
PdfObjectoutObj
PdfObjectcmpObj
PdfDictionaryoutResources
PdfDictionarycmpResources
CompareStreams

Source code

public bool CompareStreams(PRStream outStream, PRStream cmpStream)
Arguments
TypeNameDescription
PRStreamoutStream
PRStreamcmpStream
CompareArrays

Source code

public bool CompareArrays(PdfArray outArray, PdfArray cmpArray)
Arguments
TypeNameDescription
PdfArrayoutArray
PdfArraycmpArray
CompareNames

Source code

public bool CompareNames(PdfName outName, PdfName cmpName)
Arguments
TypeNameDescription
PdfNameoutName
PdfNamecmpName
CompareNumbers

Source code

public bool CompareNumbers(PdfNumber outNumber, PdfNumber cmpNumber)
Arguments
TypeNameDescription
PdfNumberoutNumber
PdfNumbercmpNumber
CompareStrings

Source code

public bool CompareStrings(PdfString outString, PdfString cmpString)
Arguments
TypeNameDescription
PdfStringoutString
PdfStringcmpString
CompareLiterals

Source code

public bool CompareLiterals(PdfLiteral outLiteral, PdfLiteral cmpLiteral)
Arguments
TypeNameDescription
PdfLiteraloutLiteral
PdfLiteralcmpLiteral
CompareBooleans

Source code

public bool CompareBooleans(PdfBoolean outBoolean, PdfBoolean cmpBoolean)
Arguments
TypeNameDescription
PdfBooleanoutBoolean
PdfBooleancmpBoolean
CompareXmp [1/4]

Source code

public string CompareXmp(byte[] xmp1, byte[] xmp2)
Arguments
TypeNameDescription
byte``[]xmp1
byte``[]xmp2
CompareXmp [2/4]

Source code

public string CompareXmp(byte[] xmp1, byte[] xmp2, bool ignoreDateAndProducerProperties)
Arguments
TypeNameDescription
byte``[]xmp1
byte``[]xmp2
boolignoreDateAndProducerProperties
CompareXmp [3/4]

Source code

public string CompareXmp(string outPdf, string cmpPdf)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf
CompareXmp [4/4]

Source code

public string CompareXmp(string outPdf, string cmpPdf, bool ignoreDateAndProducerProperties)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf
boolignoreDateAndProducerProperties
CompareXmls

Source code

public bool CompareXmls(byte[] xml1, byte[] xml2)
Arguments
TypeNameDescription
byte``[]xml1
byte``[]xml2
CompareDocumentInfo

Source code

public virtual string CompareDocumentInfo(string outPdf, string cmpPdf)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf

Source code

public virtual string CompareLinks(string outPdf, string cmpPdf)
Arguments
TypeNameDescription
stringoutPdf
stringcmpPdf

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.