public final class PageSize extends Object
Encapsulates predefined page sizes, including A0, A1, A2, A3, A4, A5, A6, B5, Letter, Legal, Ledger and P11x17.
[Java] Pdf pdf1 = new Pdf(); pdf1.getPageSetup().setPageHeight ( PageSize.A2Height); Section sec1 = pdf1.getSections().add(); Text text1 = new Text(sec1,"this is text content"); text1.getMargin().setTop ( 30); sec1.getParagraphs().add(text1); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section PageHeight="1684"> <Text MarginTop="30"> <Segment>this is text content</Segment> </Text> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
static float |
A0_HEIGHT
The height of A0.
|
static float |
A0_WIDTH
The width of A0.
|
static float |
A1_HEIGHT
The height of A1.
|
static float |
A1_WIDTH
The width of A1.
|
static float |
A2_HEIGHT
The height of A2.
|
static float |
A2_WIDTH
The width of A2.
|
static float |
A3_HEIGHT
The height of A3.
|
static float |
A3_WIDTH
The width of A3.
|
static float |
A4_HEIGHT
The height of A4.
|
static float |
A4_WIDTH
The width of A4.
|
static float |
A5_HEIGHT
the height of page A5.
|
static float |
A5_WIDTH
The width of A5.
|
static float |
A6_HEIGHT
The height of A6.
|
static float |
A6_WIDTH
The width of A6.
|
static float |
B5_HEIGHT
The height of B5.
|
static float |
B5_WIDTH
The width of B5.
|
static float |
LEDGER_HEIGHT
The height of Ledger.
|
static float |
LEDGER_WIDTH
The width of Ledger.
|
static float |
LEGAL_HEIGHT
The height of Legal.
|
static float |
LEGAL_WIDTH
The width of Legal.
|
static float |
LETTER_HEIGHT
the height of page Letter.
|
static float |
LETTER_WIDTH
The width of Letter.
|
static float |
P1_1_X_17_HEIGHT
The height of P11x17.
|
static float |
P1_1_X_17_WIDTH
The width of P11x17.
|
Constructor and Description |
---|
PageSize()
Initializes a new instance of the
PageSize class. |
public static final float A0_WIDTH
The width of A0.
public static final float A0_HEIGHT
The height of A0.
public static final float A1_WIDTH
The width of A1.
public static final float A1_HEIGHT
The height of A1.
public static final float A2_WIDTH
The width of A2.
public static final float A2_HEIGHT
The height of A2.
public static final float A3_WIDTH
The width of A3.
public static final float A3_HEIGHT
The height of A3.
public static final float A4_WIDTH
The width of A4.
public static final float A4_HEIGHT
The height of A4.
public static final float A5_WIDTH
The width of A5.
public static final float A5_HEIGHT
the height of page A5.
public static final float A6_WIDTH
The width of A6.
public static final float A6_HEIGHT
The height of A6.
public static final float B5_WIDTH
The width of B5.
public static final float B5_HEIGHT
The height of B5.
public static final float LETTER_WIDTH
The width of Letter.
public static final float LETTER_HEIGHT
the height of page Letter.
public static final float LEGAL_WIDTH
The width of Legal.
public static final float LEGAL_HEIGHT
The height of Legal.
public static final float LEDGER_WIDTH
The width of Ledger.
public static final float LEDGER_HEIGHT
The height of Ledger.
public static final float P1_1_X_17_WIDTH
The width of P11x17.
public static final float P1_1_X_17_HEIGHT
The height of P11x17.
Copyright © 2014 Aspose. All Rights Reserved.