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.
encode , encodeString , encodeText , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , hasObjectNumber , makeReference , output , referencePDF , setDocument , setObjectNumber , toInlinePDFString , toPDF , toPDFString |
contents
protected PDFStream contents
the contents stream
duration
protected int duration
Duration to display page
pageIndex
protected int pageIndex
the page index (zero-based)
pageheight
protected int pageheight
the height of the page in points
pagewidth
protected int pagewidth
the width of the page in points
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)
getHeight
public int getHeight()
Returns the page height.
getPageIndex
public int getPageIndex()
- the page Index of this page (zero-based), -1 if it the page index should
automatically be determined.
getWidth
public int getWidth()
Returns the page width.
setContents
public void setContents(PDFStream contents)
set this page contents
contents
- the contents of the page
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
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.