org.apache.fop.pdf
Class PDFPage
- PDFWritable
Class representing a /Page object.
There is one of these for every page in a PDF document. The object
specifies the dimensions of the page and references a /Resources
object, a contents stream and the page's parent in the page
hierarchy.
protected int | pageIndex - the page index (zero-based)
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
pageIndex
protected int pageIndex
the page index (zero-based)
PDFPage
public PDFPage(PDFResources resources,
int pageWidth,
int pageHeight,
int pageIndex)
Create a /Page object
resources
- the /Resources objectpageWidth
- the page's width in pointspageHeight
- the page's height in pointspageIndex
- the page's zero-based index (or -1 if the page number is auto-determined)
PDFPage
public PDFPage(PDFResources resources,
PDFStream contents,
int pageWidth,
int pageHeight,
int pageIndex)
Create a /Page object
resources
- the /Resources objectcontents
- the content streampageWidth
- the page's width in pointspageHeight
- the page's height in pointspageIndex
- the page's zero-based index (or -1 if the page number is auto-determined)
getPageIndex
public int getPageIndex()
- the page Index of this page (zero-based), -1 if it the page index should
automatically be determined.
setBleedBox
public void setBleedBox(Rectangle2D box)
Sets the "BleedBox" entry
box
- the bleed rectangle
setContents
public void setContents(PDFStream contents)
set this page contents
contents
- the contents of the page
setMediaBox
public void setMediaBox(Rectangle2D box)
Sets the "MediaBox" entry
box
- the media rectangle
setParent
public void setParent(PDFPages parent)
set this page's parent
parent
- the /Pages object that is this page's parent
setTransition
public void setTransition(int dur,
TransitionDictionary tr)
Set the transition dictionary and duration.
This sets the duration of the page and the transition
dictionary used when going to the next page.
dur
- the duration in secondstr
- the transition dictionary
setTrimBox
public void setTrimBox(Rectangle2D box)
Sets the "TrimBox" entry
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.