| Modifier and Type | Class and Description |
|---|---|
static class |
PageFormat.PageFormatBuilder |
| Constructor and Description |
|---|
PageFormat()
Creates a PageFormat with A4 portrait without margins.
|
PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox)
Creates a PageFormat with a given size and orientation portrait.
|
PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox,
Orientation orientation)
Creates a PageFormat with a given size and orientation.
|
PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox,
Orientation orientation,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
Creates a Document based on the given media box and margins.
|
PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox,
Orientation orientation,
int rotation,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
Creates a Document based on the given media box and margins.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getMarginBottom() |
float |
getMarginLeft() |
float |
getMarginRight() |
float |
getMarginTop() |
org.apache.pdfbox.pdmodel.common.PDRectangle |
getMediaBox() |
Orientation |
getOrientation() |
int |
getRotation() |
static PageFormat.PageFormatBuilder |
with() |
public PageFormat()
public PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox)
mediaBox - the size.public PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox,
Orientation orientation)
mediaBox - the size.orientation - the orientation.public PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox,
Orientation orientation,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
VerticalLayout is used.mediaBox - the media box to use.orientation - the orientation to use.marginLeft - the left marginmarginRight - the right marginmarginTop - the top marginmarginBottom - the bottom marginpublic PageFormat(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox,
Orientation orientation,
int rotation,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
VerticalLayout is used.mediaBox - the media box to use.orientation - the orientation to use.rotation - the rotation to apply to the page after rendering.marginLeft - the left marginmarginRight - the right marginmarginTop - the top marginmarginBottom - the bottom marginpublic Orientation getOrientation()
public int getRotation()
public float getMarginLeft()
public float getMarginRight()
public float getMarginTop()
public float getMarginBottom()
public org.apache.pdfbox.pdmodel.common.PDRectangle getMediaBox()
public static PageFormat.PageFormatBuilder with()
Copyright © 2021. All rights reserved.