public class

DOCXCompareResult

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pdftron.office.DOCXCompareResult

Class Overview

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

Summary

Public Constructors
DOCXCompareResult(long impl_ptr)
Public Methods
long __GetHandle()
void close()
Frees the native memory of the object.
void destroy()
Frees the native memory of the object.
boolean differencesDetected()
Retrieves whether the comparison found any differences between the two documents.
boolean originalContainsTrackedChanges()
Retrieves whether the original (first) DOCX document contained tracked changes.
boolean revisedContainsTrackedChanges()
Retrieves whether the revised (second) DOCX document contained tracked changes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public DOCXCompareResult (long impl_ptr)

Public Methods

public long __GetHandle ()

public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public boolean 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
  • true if the two documents differ, false otherwise

public 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
  • true if the original document contained tracked changes, false otherwise

public 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
  • true if the revised document contained tracked changes, false otherwise