PageSize
Leave feedback
On this page
Inheritance: java.lang.Object, java.lang.Enum
All Implemented Interfaces: com.groupdocs.conversion.options.convert.IPageSize
public enum PageSize extends Enum<PageSize> implements IPageSize
| Field | Description |
|---|---|
| A3 | |
| A4 | |
| A5 | |
| B4 | |
| B5 | |
| CUSTOM | |
| ENVELOPE_DL | |
| EXECUTIVE | |
| FOLIO | |
| LEDGER | |
| LEGAL | |
| LETTER | |
| PAPER_10_X_14 | |
| PAPER_11_X_17 | |
| QUARTO | |
| STATEMENT | |
| TABLOID | |
| UNSET |
public static final PageSize A3
public static final PageSize A4
public static final PageSize A5
public static final PageSize B4
public static final PageSize B5
public static final PageSize CUSTOM
public static final PageSize ENVELOPE_DL
public static final PageSize EXECUTIVE
public static final PageSize FOLIO
public static final PageSize LEDGER
public static final PageSize LEGAL
public static final PageSize LETTER
public static final PageSize PAPER_10_X_14
public static final PageSize PAPER_11_X_17
public static final PageSize QUARTO
public static final PageSize STATEMENT
public static final PageSize TABLOID
public static final PageSize UNSET
public static PageSize[] values()
Returns: com.groupdocs.conversion.options.convert.PageSize[]
public static PageSize valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: PageSize
public static PageSize.PageSizeCustom createCustom(float width, float height)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| width | float | |
| height | float |
Returns: PageSizeCustom
public String getKey()
Returns: java.lang.String
public String getName()
Returns: java.lang.String
public float getWidth()
Returns: float
public float getHeight()
Returns: float
public static int pointsToPixels(float points, int dpi)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| points | float | |
| dpi | int |
Returns: int
public static float pixelsToPoints(int pixels, int dpi)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pixels | int | |
| dpi | int |
Returns: float
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.