public class OriginalSize extends Object
The original size includes the dimensions (width and height) of the document's pages.
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
CompareOptions compareOptions = new CompareOptions();
final OriginalSize originalSize = compareOptions.getOriginalSize();
originalSize.setWidth(480);
originalSize.setHeight(640);
comparer.compare(resultFile, compareOptions);
}
Comparer,
CompareOptions| Constructor and Description |
|---|
OriginalSize() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Gets the height of the document's pages.
|
int |
getWidth()
Gets the width of the document's pages.
|
void |
setHeight(int value)
Sets the height of the document's pages.
|
void |
setWidth(int value)
Sets the width of the document's pages.
|
public final int getHeight()
Gets the height of the document's pages.
public final int getWidth()
Gets the width of the document's pages.
public final void setHeight(int value)
Sets the height of the document's pages.
value - The height of the document's pages.public final void setWidth(int value)
Sets the width of the document's pages.
value - The width of the document's pages.Copyright © 2024. All rights reserved.