Package com.evopdf
Class PdfPageSize
java.lang.Object
com.evopdf.PdfPageSize
This class represents a PDF page size
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfPageSize
Represents the A0 size of a PDF pagestatic final PdfPageSize
Represents the A1 size of a PDF pagestatic final PdfPageSize
Represents the A10 size of a PDF pagestatic final PdfPageSize
Represents the A2 size of a PDF pagestatic final PdfPageSize
Represents the A3 size of a PDF pagestatic final PdfPageSize
Represents the A4 size of a PDF pagestatic final PdfPageSize
Represents the A5 size of a PDF pagestatic final PdfPageSize
Represents the A6 size of a PDF pagestatic final PdfPageSize
Represents the A7 size of a PDF pagestatic final PdfPageSize
Represents the A8 size of a PDF pagestatic final PdfPageSize
Represents the A9 size of a PDF pagestatic final PdfPageSize
Represents the ArchA size of a PDF pagestatic final PdfPageSize
Represents the ArchB size of a PDF pagestatic final PdfPageSize
Represents the ArchC size of a PDF pagestatic final PdfPageSize
Represents the ArchD size of a PDF pagestatic final PdfPageSize
Represents the ArchE size of a PDF pagestatic final PdfPageSize
Represents the B0 size of a PDF pagestatic final PdfPageSize
Represents the B1 size of a PDF pagestatic final PdfPageSize
Represents the B2 size of a PDF pagestatic final PdfPageSize
Represents the B3 size of a PDF pagestatic final PdfPageSize
Represents the B4 size of a PDF pagestatic final PdfPageSize
Represents the B5 size of a PDF pagestatic final PdfPageSize
Represents the Flsa size of a PDF pagestatic final PdfPageSize
Represents the HalfLetter size of a PDF pagestatic final PdfPageSize
Represents the Ledger size of a PDF pagestatic final PdfPageSize
Represents the Legal size of a PDF pagestatic final PdfPageSize
Represents the Letter size of a PDF pagestatic final PdfPageSize
Represents the 11x17 size of a PDF pagestatic final PdfPageSize
Represents the Note size of a PDF page -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor constructs a A4 page sizePdfPageSize
(float width, float height) Constructs a custom page size -
Method Summary
-
Field Details
-
Letter
Represents the Letter size of a PDF page -
Note
Represents the Note size of a PDF page -
Legal
Represents the Legal size of a PDF page -
A0
Represents the A0 size of a PDF page -
A1
Represents the A1 size of a PDF page -
A2
Represents the A2 size of a PDF page -
A3
Represents the A3 size of a PDF page -
A4
Represents the A4 size of a PDF page -
A5
Represents the A5 size of a PDF page -
A6
Represents the A6 size of a PDF page -
A7
Represents the A7 size of a PDF page -
A8
Represents the A8 size of a PDF page -
A9
Represents the A9 size of a PDF page -
A10
Represents the A10 size of a PDF page -
B0
Represents the B0 size of a PDF page -
B1
Represents the B1 size of a PDF page -
B2
Represents the B2 size of a PDF page -
B3
Represents the B3 size of a PDF page -
B4
Represents the B4 size of a PDF page -
B5
Represents the B5 size of a PDF page -
ArchE
Represents the ArchE size of a PDF page -
ArchD
Represents the ArchD size of a PDF page -
ArchC
Represents the ArchC size of a PDF page -
ArchB
Represents the ArchB size of a PDF page -
ArchA
Represents the ArchA size of a PDF page -
Flsa
Represents the Flsa size of a PDF page -
HalfLetter
Represents the HalfLetter size of a PDF page -
Letter11x17
Represents the 11x17 size of a PDF page -
Ledger
Represents the Ledger size of a PDF page
-
-
Constructor Details
-
PdfPageSize
public PdfPageSize()Default constructor constructs a A4 page size -
PdfPageSize
public PdfPageSize(float width, float height) Constructs a custom page size- Parameters:
width
- the page width in pointsheight
- the page height in points
-
-
Method Details
-
width
public float width()Gets the page width- Returns:
- the PDF page width
-
setWidth
public void setWidth(float pageWidth) Sets the page width- Parameters:
pageWidth
- the PDF page width
-
height
public float height()Gets the page height- Returns:
- the PDF page height
-
setHeight
public void setHeight(float pageHeight) Sets the page height- Parameters:
pageHeight
- the PDF page height
-