Class: DOCXCompareResult

PDFNet. DOCXCompareResult


new DOCXCompareResult()

A class representing the result of comparing two DOCX files using the DOCXCompare API.

Extends

Methods


destroy()

Destructor
Inherited From:
Returns:
Type
Promise.<void>

differencesDetected()

Retrieves whether the comparison found any differences between the two documents. If this function returns true, the output file will contain tracked changes reflecting those differences.
Returns:
A promise that resolves to true if the two documents differ, false otherwise.
Type
Promise.<boolean>

originalContainsTrackedChanges()

Retrieves whether the original (first) DOCX document contained tracked changes. If this function returns true, those tracked changes will be automatically accepted before performing the comparison.
Returns:
A promise that resolves to true if the original document contained tracked changes, false otherwise.
Type
Promise.<boolean>

revisedContainsTrackedChanges()

Retrieves whether the revised (second) DOCX document contained tracked changes. If this function returns true, those tracked changes will be automatically accepted before performing the comparison.
Returns:
A promise that resolves to true if the revised document contained tracked changes, false otherwise.
Type
Promise.<boolean>

takeOwnership()

Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
Inherited From:
Returns:
Type
void