public class PageBoundaries
extends java.lang.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(java.awt.Dimension pageSize,
java.util.Map foreignAttributes)
Creates a new instance.
|
PageBoundaries(java.awt.Dimension pageSize,
java.lang.String bleed,
java.lang.String cropOffset,
java.lang.String cropBoxSelector)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBleedBox()
Returns the bleed box for the page.
|
java.awt.Rectangle |
getCropBox()
Returns the crop box for the page.
|
java.awt.Rectangle |
getMediaBox()
Returns the media box for the page.
|
java.awt.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(java.awt.Dimension pageSize, java.lang.String bleed, java.lang.String cropOffset, java.lang.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 PageBoundaries(java.awt.Dimension pageSize, java.util.Map foreignAttributes)
pageSize
- the page size (in mpt) defined by the simple-page-master.foreignAttributes
- the foreign attributes for the page
(used to extract the extension attribute values)public java.awt.Rectangle getTrimBox()
public java.awt.Rectangle getBleedBox()
public java.awt.Rectangle getMediaBox()
public java.awt.Rectangle getCropBox()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.