com.spire.pdf.comparison
Class PdfComparer

java.lang.Object
  extended by com.spire.pdf.comparison.PdfComparer

public class PdfComparer
extends java.lang.Object

The pdf document compare.


Constructor Summary
PdfComparer(PdfDocument oldDocument, PdfDocument newDocument)
          Construct a new instance.
 
Method Summary
 void compare(com.spire.ms.System.IO.Stream outPdfStream)
          Compare the old/new pdf docments,generate diff pdf document.
 void compare(java.lang.String outPdfFile)
          Compare the old/new pdf docments,generate diff pdf document.
 PdfCompareOptions getOptions()
          The compare options.
 

Constructor Detail

PdfComparer

public PdfComparer(PdfDocument oldDocument,
                   PdfDocument newDocument)
Construct a new instance.

Parameters:
oldDocument - The old pdf document.
newDocument - The new pdf document.
Method Detail

getOptions

public PdfCompareOptions getOptions()
The compare options.

Returns:
The compare options.

compare

public void compare(java.lang.String outPdfFile)
Compare the old/new pdf docments,generate diff pdf document.

Parameters:
outPdfFile - The out pdf file path.
Throws:
java.lang.Exception

compare

public void compare(com.spire.ms.System.IO.Stream outPdfStream)
Compare the old/new pdf docments,generate diff pdf document.

Parameters:
outPdfStream - The out pdf document stream.