flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.testutils
iTextSharp.testutils.CompareTool[[CompareTool]]
end
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) |
Source code
public CompareTool()
Source code
public virtual string Compare(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix, IDictionary<int, IList<Rectangle>> ignoredAreas)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
string | outPath | |
string | differenceImagePrefix | |
IDictionary <int , IList <Rectangle >> | ignoredAreas | |
Source code
public virtual string Compare(string outPdf, string cmpPdf, string outPath, string differenceImagePrefix)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
string | outPath | |
string | differenceImagePrefix | |
SetCompareByContentErrorsLimit
Source code
public virtual CompareTool SetCompareByContentErrorsLimit(int compareByContentMaxErrorCount)
Type | Name | Description |
---|
int | compareByContentMaxErrorCount | |
SetGenerateCompareByContentXmlReport
Source code
public virtual void SetGenerateCompareByContentXmlReport(bool generateCompareByContentXmlReport)
Type | Name | Description |
---|
bool | generateCompareByContentXmlReport | |
Source code
public CompareTool SetFloatAbsoluteError(float error)
Type | Name | Description |
---|
float | error | |
Source code
public CompareTool SetFloatRelativeError(float error)
Type | Name | Description |
---|
float | error | |
Source code
public void SetXmlReportName(string reportName)
Type | Name | Description |
---|
string | reportName | |
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)
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)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
string | outPath | |
string | differenceImagePrefix | |
Source code
public bool CompareDictionaries(PdfDictionary outDict, PdfDictionary cmpDict)
CompareContentStreamsByParsing [1/2]
Source code
public bool CompareContentStreamsByParsing(PdfObject outObj, PdfObject cmpObj)
CompareContentStreamsByParsing [2/2]
Source code
public bool CompareContentStreamsByParsing(PdfObject outObj, PdfObject cmpObj, PdfDictionary outResources, PdfDictionary cmpResources)
Source code
public bool CompareStreams(PRStream outStream, PRStream cmpStream)
Source code
public bool CompareArrays(PdfArray outArray, PdfArray cmpArray)
Source code
public bool CompareNames(PdfName outName, PdfName cmpName)
Source code
public bool CompareNumbers(PdfNumber outNumber, PdfNumber cmpNumber)
Source code
public bool CompareStrings(PdfString outString, PdfString cmpString)
Source code
public bool CompareLiterals(PdfLiteral outLiteral, PdfLiteral cmpLiteral)
Source code
public bool CompareBooleans(PdfBoolean outBoolean, PdfBoolean cmpBoolean)
Source code
public string CompareXmp(byte[] xmp1, byte[] xmp2)
Type | Name | Description |
---|
byte``[] | xmp1 | |
byte``[] | xmp2 | |
Source code
public string CompareXmp(byte[] xmp1, byte[] xmp2, bool ignoreDateAndProducerProperties)
Type | Name | Description |
---|
byte``[] | xmp1 | |
byte``[] | xmp2 | |
bool | ignoreDateAndProducerProperties | |
Source code
public string CompareXmp(string outPdf, string cmpPdf)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
Source code
public string CompareXmp(string outPdf, string cmpPdf, bool ignoreDateAndProducerProperties)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
bool | ignoreDateAndProducerProperties | |
Source code
public bool CompareXmls(byte[] xml1, byte[] xml2)
Type | Name | Description |
---|
byte``[] | xml1 | |
byte``[] | xml2 | |
Source code
public virtual string CompareDocumentInfo(string outPdf, string cmpPdf)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
Source code
public virtual string CompareLinks(string outPdf, string cmpPdf)
Type | Name | Description |
---|
string | outPdf | |
string | cmpPdf | |
Generated with ModularDoc