iText 5

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

Returns

Name

string

Compare

(...)

bool

CompareArrays

(

PdfArray

outArray,

PdfArray

cmpArray)

bool

CompareBooleans

(

PdfBoolean

outBoolean,

PdfBoolean

cmpBoolean)

string

CompareByContent

(...)

bool

CompareContentStreamsByParsing

(...)

bool

CompareDictionaries

(

PdfDictionary

outDict,

PdfDictionary

cmpDict)

string

CompareDocumentInfo

(string outPdf, string cmpPdf)

string

CompareLinks

(string outPdf, string cmpPdf)

bool

CompareLiterals

(

PdfLiteral

outLiteral,

PdfLiteral

cmpLiteral)

bool

CompareNames

(

PdfName

outName,

PdfName

cmpName)

bool

CompareNumbers

(

PdfNumber

outNumber,

PdfNumber

cmpNumber)

bool

CompareStreams

(

PRStream

outStream,

PRStream

cmpStream)

bool

CompareStrings

(

PdfString

outString,

PdfString

cmpString)

bool

CompareXmls

(byte``[] xml1, byte``[] xml2)

string

CompareXmp

(...)

string

GetXmlReportName

()

CompareTool

SetCompareByContentErrorsLimit

(int compareByContentMaxErrorCount)

CompareTool

SetFloatAbsoluteError

(float error)

CompareTool

SetFloatRelativeError

(float error)

void

SetGenerateCompareByContentXmlReport

(bool generateCompareByContentXmlReport)

void

SetXmlReportName

(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

Type

Name

Description

string

outPdf

string

cmpPdf

string

outPath

string

differenceImagePrefix

IDictionary<int, IList<

Rectangle

>>

ignoredAreas

Compare [2/2]

Source code

public virtual string Compare(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix)

Arguments

Type

Name

Description

string

outPdf

string

cmpPdf

string

outPath

string

differenceImagePrefix

SetCompareByContentErrorsLimit

Source code

public virtual CompareTool SetCompareByContentErrorsLimit(int compareByContentMaxErrorCount)

Arguments

Type

Name

Description

int

compareByContentMaxErrorCount

SetGenerateCompareByContentXmlReport

Source code

public virtual void SetGenerateCompareByContentXmlReport(bool generateCompareByContentXmlReport)

Arguments

Type

Name

Description

bool

generateCompareByContentXmlReport

SetFloatAbsoluteError

Source code

public CompareTool SetFloatAbsoluteError(float error)

Arguments

Type

Name

Description

float

error

SetFloatRelativeError

Source code

public CompareTool SetFloatRelativeError(float error)

Arguments

Type

Name

Description

float

error

SetXmlReportName

Source code

public void SetXmlReportName(string reportName)

Arguments

Type

Name

Description

string

reportName

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

Type

Name

Description

string

outPdf

string

cmpPdf

string

outPath

string

differenceImagePrefix

IDictionary<int, IList<

Rectangle

>>

ignoredAreas

CompareByContent [2/2]

Source code

public virtual string CompareByContent(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix)

Arguments

Type

Name

Description

string

outPdf

string

cmpPdf

string

outPath

string

differenceImagePrefix

CompareDictionaries

Source code

public bool CompareDictionaries(PdfDictionary outDict, PdfDictionary cmpDict)

Arguments

Type

Name

Description

PdfDictionary

outDict

PdfDictionary

cmpDict

CompareContentStreamsByParsing [1/2]

Source code

public bool CompareContentStreamsByParsing(PdfObject outObj, PdfObject cmpObj)

Arguments

Type

Name

Description

PdfObject

outObj

PdfObject

cmpObj

CompareContentStreamsByParsing [2/2]

Source code

public bool CompareContentStreamsByParsing(PdfObject outObj, PdfObject cmpObj, PdfDictionary outResources, PdfDictionary cmpResources)

Arguments

Type

Name

Description

PdfObject

outObj

PdfObject

cmpObj

PdfDictionary

outResources

PdfDictionary

cmpResources

CompareStreams

Source code

public bool CompareStreams(PRStream outStream, PRStream cmpStream)

Arguments

Type

Name

Description

PRStream

outStream

PRStream

cmpStream

CompareArrays

Source code

public bool CompareArrays(PdfArray outArray, PdfArray cmpArray)

Arguments

Type

Name

Description

PdfArray

outArray

PdfArray

cmpArray

CompareNames

Source code

public bool CompareNames(PdfName outName, PdfName cmpName)

Arguments

Type

Name

Description

PdfName

outName

PdfName

cmpName

CompareNumbers

Source code

public bool CompareNumbers(PdfNumber outNumber, PdfNumber cmpNumber)

Arguments

Type

Name

Description

PdfNumber

outNumber

PdfNumber

cmpNumber

CompareStrings

Source code

public bool CompareStrings(PdfString outString, PdfString cmpString)

Arguments

Type

Name

Description

PdfString

outString

PdfString

cmpString

CompareLiterals

Source code

public bool CompareLiterals(PdfLiteral outLiteral, PdfLiteral cmpLiteral)

Arguments

Type

Name

Description

PdfLiteral

outLiteral

PdfLiteral

cmpLiteral

CompareBooleans

Source code

public bool CompareBooleans(PdfBoolean outBoolean, PdfBoolean cmpBoolean)

Arguments

Type

Name

Description

PdfBoolean

outBoolean

PdfBoolean

cmpBoolean

CompareXmp [1/4]

Source code

public string CompareXmp(byte[] xmp1, byte[] xmp2)

Arguments

Type

Name

Description

byte``[]

xmp1

byte``[]

xmp2

CompareXmp [2/4]

Source code

public string CompareXmp(byte[] xmp1, byte[] xmp2, bool ignoreDateAndProducerProperties)

Arguments

Type

Name

Description

byte``[]

xmp1

byte``[]

xmp2

bool

ignoreDateAndProducerProperties

CompareXmp [3/4]

Source code

public string CompareXmp(string outPdf, string cmpPdf)

Arguments

Type

Name

Description

string

outPdf

string

cmpPdf

CompareXmp [4/4]

Source code

public string CompareXmp(string outPdf, string cmpPdf, bool ignoreDateAndProducerProperties)

Arguments

Type

Name

Description

string

outPdf

string

cmpPdf

bool

ignoreDateAndProducerProperties

CompareXmls

Source code

public bool CompareXmls(byte[] xml1, byte[] xml2)

Arguments

Type

Name

Description

byte``[]

xml1

byte``[]

xml2

CompareDocumentInfo

Source code

public virtual string CompareDocumentInfo(string outPdf, string cmpPdf)

Arguments

Type

Name

Description

string

outPdf

string

cmpPdf

Source code

public virtual string CompareLinks(string outPdf, string cmpPdf)

Arguments

Type

Name

Description

string

outPdf

string

cmpPdf

Generated with ModularDoc