|
fop 0.95 | ||||||||||
| 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.PDFDictionary
org.apache.fop.pdf.PDFResourceContext
org.apache.fop.pdf.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 int |
pageIndex
the page index (zero-based) |
| Fields inherited from class org.apache.fop.pdf.PDFDictionary |
entries, order |
| 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 |
getPageIndex()
|
void |
setBleedBox(java.awt.geom.Rectangle2D box)
Sets the "BleedBox" entry |
void |
setContents(PDFStream contents)
set this page contents |
void |
setMediaBox(java.awt.geom.Rectangle2D box)
Sets the "MediaBox" entry |
void |
setParent(PDFPages parent)
set this page's parent |
void |
setTransition(int dur,
TransitionDictionary tr)
Set the transition dictionary and duration. |
void |
setTrimBox(java.awt.geom.Rectangle2D box)
Sets the "TrimBox" entry |
| Methods inherited from class org.apache.fop.pdf.PDFResourceContext |
addAnnotation, addGState, addShading, getAnnotations, getPDFResources |
| Methods inherited from class org.apache.fop.pdf.PDFDictionary |
get, output, put, put, writeDictionary |
| Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int pageIndex
| 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 setMediaBox(java.awt.geom.Rectangle2D box)
box - the media rectanglepublic void setTrimBox(java.awt.geom.Rectangle2D box)
box - the trim rectanglepublic void setBleedBox(java.awt.geom.Rectangle2D box)
box - the bleed rectanglepublic void setContents(PDFStream contents)
contents - the contents of the pagepublic void setParent(PDFPages parent)
parent - the /Pages object that is this page's parent
public void setTransition(int dur,
TransitionDictionary tr)
dur - the duration in secondstr - the transition dictionarypublic int getPageIndex()
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||