public class PageBoundaries extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.xmlgraphics.util.QName |
EXT_BLEED
The extension attribute for calculating the PDF BleedBox area - specifies the bleed width.
|
static org.apache.xmlgraphics.util.QName |
EXT_CROP_BOX
The extension attribute for the PDF CropBox area.
|
static org.apache.xmlgraphics.util.QName |
EXT_CROP_OFFSET
The extension attribute for the PDF CropBox area.
|
Constructor and Description |
---|
PageBoundaries(Dimension pageSize,
Map foreignAttributes)
Creates a new instance.
|
PageBoundaries(Dimension pageSize,
String bleed,
String cropOffset,
String cropBoxSelector)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBleedBox()
Returns the bleed box for the page.
|
Rectangle |
getCropBox()
Returns the crop box for the page.
|
Rectangle |
getMediaBox()
Returns the media box for the page.
|
Rectangle |
getTrimBox()
Returns the trim box for the page.
|
public static final org.apache.xmlgraphics.util.QName EXT_BLEED
public static final org.apache.xmlgraphics.util.QName EXT_CROP_OFFSET
public static final org.apache.xmlgraphics.util.QName EXT_CROP_BOX
public PageBoundaries(Dimension pageSize, String bleed, String cropOffset, String cropBoxSelector)
pageSize
- the page size (in mpt) defined by the simple-page-master.bleed
- the bleed value (raw value as given in the property value)cropOffset
- the crop-offset value (raw value as given in the property value)cropBoxSelector
- the crop-box, valid values: (trim-box|bleed-box|media-box)public Rectangle getTrimBox()
public Rectangle getBleedBox()
public Rectangle getMediaBox()
public Rectangle getCropBox()
Copyright © 2025 Apache Software Foundation. All rights reserved.