public class ComparisonOptions extends Object
Represents a PDF document comparison options class.
Constructor and Description |
---|
ComparisonOptions()
Creates a
ComparisonOptions class instance. |
Modifier and Type | Method and Description |
---|---|
EditOperationsOrder |
getEditOperationsOrder()
Gets and sets the edit operations order.
|
Rectangle[] |
getExcludeAreas1()
Get and set the exclude areas.
|
Rectangle[] |
getExcludeAreas2()
Get and set the exclude areas.
|
Rectangle |
getExtractionArea()
Get and set the rectangular area in which the text of pages will be compared.
|
boolean |
isExcludeTables()
Get and set the option that determines whether tables are excluded from comparison.
|
void |
setEditOperationsOrder(EditOperationsOrder value)
Gets and sets the edit operations order.
|
void |
setExcludeAreas1(Rectangle[] value)
Get and set the exclude areas.
|
void |
setExcludeAreas2(Rectangle[] value)
Get and set the exclude areas.
|
void |
setExcludeTables(boolean value)
Get and set the option that determines whether tables are excluded from comparison.
|
void |
setExtractionArea(Rectangle value)
Get and set the rectangular area in which the text of pages will be compared.
|
public ComparisonOptions()
Creates a ComparisonOptions
class instance.
public final Rectangle getExtractionArea()
Get and set the rectangular area in which the text of pages will be compared.
This option can't be setted along with ExcludeTables
({ #getExcludeTables}/{ #setExcludeTables(boolean)}),
ExcludeAreas1
({ #getExcludeAreas1}/{ #setExcludeAreas1(Rectangle[])})
and { ExcludeAreas2}({ #getExcludeAreas2}/{ #setExcludeAreas2(Rectangle[])}) options.
public final void setExtractionArea(Rectangle value)
Get and set the rectangular area in which the text of pages will be compared.
This option can't be setted along with ExcludeTables
({ #getExcludeTables}/{ #setExcludeTables(boolean)}),
ExcludeAreas1
({ #getExcludeAreas1}/{ #setExcludeAreas1(Rectangle[])})
and { ExcludeAreas2}({ #getExcludeAreas2}/{ #setExcludeAreas2(Rectangle[])}) options.
value
- Rectangle instancepublic final boolean isExcludeTables()
Get and set the option that determines whether tables are excluded from comparison.
This option cannot be set together with ExtractionArea
(getExtractionArea()
/setExtractionArea(Rectangle)
) option.
The default value is false
.
public final void setExcludeTables(boolean value)
Get and set the option that determines whether tables are excluded from comparison.
This option cannot be set together with ExtractionArea
(getExtractionArea()
/setExtractionArea(Rectangle)
) option.
The default value is false
.
value
- boolean valuepublic final Rectangle[] getExcludeAreas1()
Get and set the exclude areas. Used for the first page or document in the comparison method.
This option can be setted along with ExcludeTables
(isExcludeTables()
/setExcludeTables(boolean)
).
This option can't be setted along with ExtractionArea
(getExtractionArea()
/setExtractionArea(Rectangle)
) option.
public final void setExcludeAreas1(Rectangle[] value)
Get and set the exclude areas. Used for the first page or document in the comparison method.
This option can be setted along with ExcludeTables
(isExcludeTables()
/setExcludeTables(boolean)
).
This option can't be setted along with ExtractionArea
(getExtractionArea()
/setExtractionArea(Rectangle)
) option.
value
- array of Rectangle instancespublic final Rectangle[] getExcludeAreas2()
Get and set the exclude areas. Used for the second page or document in the comparison method.
This option can be setted along with ExcludeTables
(isExcludeTables()
/setExcludeTables(boolean)
).
This option can't be setted along with ExtractionArea
(getExtractionArea()
/setExtractionArea(Rectangle)
) option.
public final void setExcludeAreas2(Rectangle[] value)
Get and set the exclude areas. Used for the second page or document in the comparison method.
This option can be setted along with ExcludeTables
(isExcludeTables()
/setExcludeTables(boolean)
).
This option can't be setted along with ExtractionArea
(getExtractionArea()
/setExtractionArea(Rectangle)
) option.
value
- Rectangle instancepublic final EditOperationsOrder getEditOperationsOrder()
Gets and sets the edit operations order.
public final void setEditOperationsOrder(EditOperationsOrder value)
Gets and sets the edit operations order.
value
- EditOperationsOrder elementCopyright © 2025 Aspose. All Rights Reserved.