PaperSize
Leave feedback
On this page
Inheritance: java.lang.Object, java.lang.Enum
public enum PaperSize extends Enum<PaperSize>
Represents the paper size options for document comparison.
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setPaperSize(PaperSize.A6);
comparer.compare(resultFile, compareOptions);
}
| Field | Description |
|---|---|
| DEFAULT | Default paper size. |
| A0 | Standard paper size A0 (841mm x 1189mm). |
| A1 | Standard paper size A1 (594mm x 841mm). |
| A2 | Standard paper size A2 (420mm x 594mm). |
| A3 | Standard paper size A3 (297mm x 420mm). |
| A4 | Standard paper size A4 (210mm x 297mm). |
| A5 | Standard paper size A5 (148mm x 210mm). |
| A6 | Standard paper size A6 (105mm x 148mm). |
| A7 | Standard paper size A7 (74mm x 105mm). |
| A8 | Standard paper size A8 (52mm x 74mm). |
| Method | Description |
|---|---|
| values() | |
| valueOf(String name) | |
| fromString(String toStringValue) | Parses string representation of PaperSize to get the enum constant. |
| toString() | String representation of PaperSize. |
public static final PaperSize DEFAULT
Default paper size.
public static final PaperSize A0
Standard paper size A0 (841mm x 1189mm).
public static final PaperSize A1
Standard paper size A1 (594mm x 841mm).
public static final PaperSize A2
Standard paper size A2 (420mm x 594mm).
public static final PaperSize A3
Standard paper size A3 (297mm x 420mm).
public static final PaperSize A4
Standard paper size A4 (210mm x 297mm).
public static final PaperSize A5
Standard paper size A5 (148mm x 210mm).
public static final PaperSize A6
Standard paper size A6 (105mm x 148mm).
public static final PaperSize A7
Standard paper size A7 (74mm x 105mm).
public static final PaperSize A8
Standard paper size A8 (52mm x 74mm).
public static PaperSize[] values()
Returns: com.groupdocs.comparison.options.enums.PaperSize[]
public static PaperSize valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: PaperSize
public static PaperSize fromString(String toStringValue)
Parses string representation of PaperSize to get the enum constant.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| toStringValue | java.lang.String | The string representation of PaperSize |
Returns: PaperSize - PaperSize enum constant associated with input string
public String toString()
String representation of PaperSize.
Returns: java.lang.String - string value of enum constant
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.