|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFResourceContext
org.apache.fop.pdf.PDFPage
public class PDFPage
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.
Field Summary | |
---|---|
protected PDFStream |
contents
the contents stream |
protected int |
duration
Duration to display page |
protected int |
pageheight
the height of the page in points |
protected int |
pageIndex
the page index (zero-based) |
protected int |
pagewidth
the width of the page in points |
protected TransitionDictionary |
trDictionary
Transition dictionary |
Fields inherited from class org.apache.fop.pdf.PDFResourceContext |
---|
annotList, resources |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
DATE_FORMAT, log |
Constructor Summary | |
---|---|
PDFPage(PDFResources resources,
int pageWidth,
int pageHeight,
int pageIndex)
Create a /Page object |
|
PDFPage(PDFResources resources,
PDFStream contents,
int pageWidth,
int pageHeight,
int pageIndex)
Create a /Page object |
Method Summary | |
---|---|
int |
getHeight()
Returns the page height. |
int |
getPageIndex()
|
int |
getWidth()
Returns the page width. |
void |
setContents(PDFStream contents)
set this page contents |
void |
setParent(PDFPages parent)
set this page's parent |
void |
setTransition(int dur,
TransitionDictionary tr)
Set the transition dictionary and duration. |
java.lang.String |
toPDFString()
This method returns a String representation of the PDF object. |
Methods inherited from class org.apache.fop.pdf.PDFResourceContext |
---|
addAnnotation, addGState, addShading, getAnnotations, getPDFResources |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PDFStream contents
protected int pagewidth
protected int pageheight
protected int pageIndex
protected int duration
protected TransitionDictionary trDictionary
Constructor Detail |
---|
public PDFPage(PDFResources resources, PDFStream contents, int pageWidth, int pageHeight, int pageIndex)
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)public PDFPage(PDFResources resources, int pageWidth, int pageHeight, int pageIndex)
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)Method Detail |
---|
public void setContents(PDFStream contents)
contents
- the contents of the pagepublic void setParent(PDFPages parent)
parent
- the /Pages object that is this page's parentpublic void setTransition(int dur, TransitionDictionary tr)
dur
- the duration in secondstr
- the transition dictionarypublic int getWidth()
public int getHeight()
public int getPageIndex()
public java.lang.String toPDFString()
PDFObject
toPDFString
in class PDFObject
PDFObject.toPDFString()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |