OriginalSize
Contents
[
Hide
]
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);
}
Constructors
Constructor | Description |
---|---|
OriginalSize() |
Methods
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. |
OriginalSize()
public OriginalSize()
getWidth()
public final int getWidth()
Gets the width of the document’s pages.
Returns: int - the width of the document’s pages.
setWidth(int value)
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. |
getHeight()
public final int getHeight()
Gets the height of the document’s pages.
Returns: int - the height of the document’s pages.
setHeight(int value)
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. |