OriginalSize
Leave feedback
On this page
Inheritance: java.lang.Object
public class OriginalSize
Represents the original size of a document in a comparison result.
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);
}
| Constructor | Description |
|---|---|
| OriginalSize() |
| Method | Description |
|---|---|
| getWidth() | Gets the width of the document’s pages. |
| setWidth(int value) | Sets the width of the document’s pages. |
| getHeight() | Gets the height of the document’s pages. |
| setHeight(int value) | Sets the height of the document’s pages. |
public OriginalSize()
public final int getWidth()
Gets the width of the document’s pages.
Returns: int - the width of the document’s pages.
public final void setWidth(int value)
Sets the width of the document’s pages.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The width of the document’s pages. |
public final int getHeight()
Gets the height of the document’s pages.
Returns: int - the height of the document’s pages.
public final void setHeight(int value)
Sets the height of the document’s pages.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The height of the document’s pages. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.