Class DocumentComparer
Compares two Document instances and reports all detected differences.
Inherited Members
Namespace: DRIT.Pdf.Comparison
Assembly: DRIT.Pdf.dll
Syntax
public static class DocumentComparer
Methods
Compare(Document, Document, CompareOptions?)
Compare two already-loaded Document objects.
Declaration
public static ComparisonResult Compare(Document a, Document b, CompareOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | a | The baseline document. |
| Document | b | The document to compare against the baseline. |
| CompareOptions | options | Comparison options. When null the defaults defined by CompareOptions are used. |
Returns
| Type | Description |
|---|---|
| ComparisonResult |
Compare(string, string, CompareOptions?)
Compare two PDF files by path, loading and disposing each document automatically.
Declaration
public static ComparisonResult Compare(string pathA, string pathB, CompareOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | pathA | File path of the baseline PDF. |
| string | pathB | File path of the PDF to compare against the baseline. |
| CompareOptions | options | Comparison options. When null the defaults defined by CompareOptions are used. |
Returns
| Type | Description |
|---|---|
| ComparisonResult |