• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DocumentComparer

Compares two Document instances and reports all detected differences.

Inheritance
object
DocumentComparer
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX