|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFPage
public class PDFPage
A PDF Page. 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 |
---|
Fields inherited from class org.foray.pdf.object.PDFObject |
---|
EOL, MSG_EOL, XREF_EOL |
Constructor Summary | |
---|---|
PDFPage(PDFDocument doc,
PDFResources resources,
int pagewidth,
int pageheight)
Create a /Page object. |
Method Summary | |
---|---|
void |
addAnnotationList(PDFAnnotList listToAdd)
Add an annotation list to the annotations on this page. |
void |
addShading(PDFShading shading)
Add a shading to this page. |
PDFDestination |
createDestination(float xPosition,
float yPosition)
|
PDFContentStream |
getContentStream()
|
PDFLink |
makeLink(Rectangle2D rect,
String destination,
boolean externalLink)
|
void |
setParent(PDFPages parent)
Set this page's parent. |
String |
toPDF()
Generates the PDF text necessary to represent the object, returning it as a String. |
Methods inherited from class org.foray.pdf.object.PDFObject |
---|
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFPage(PDFDocument doc, PDFResources resources, int pagewidth, int pageheight)
doc
- The PDF document being built.resources
- the /Resources objectpagewidth
- the page's width in pointspageheight
- the page's height in pointsMethod Detail |
---|
public void setParent(PDFPages parent)
parent
- the /Pages object that is this page's parentpublic void addShading(PDFShading shading)
shading
- The shading to be added.public String toPDF()
PDFObject
public void addAnnotationList(PDFAnnotList listToAdd)
listToAdd
- The annotation list to add.public PDFLink makeLink(Rectangle2D rect, String destination, boolean externalLink)
makeLink
in interface org.axsl.pdf.PdfPage
public PDFContentStream getContentStream()
getContentStream
in interface org.axsl.pdf.PdfPage
public PDFDestination createDestination(float xPosition, float yPosition)
createDestination
in interface org.axsl.pdf.PdfPage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |