|
||||||||||
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.PDFRoot
public class PDFRoot
The Root (/Catalog) object.
Field Summary |
---|
Fields inherited from class org.foray.pdf.object.PDFObject |
---|
EOL, MSG_EOL, XREF_EOL |
Constructor Summary | |
---|---|
PDFRoot(PDFDocument doc)
Create a Root (/Catalog) object. |
Method Summary | |
---|---|
void |
addPage(PDFPage page)
Add a /Page object to the root /Pages object. |
void |
addPageLabel(int pageIndex,
PDFPageLabel pageLabel)
Adds a range of pages to the page labels for this document. |
PDFNameTree<PDFDestination> |
getDestinations()
Returns the destinations in this document. |
PDFNameTree<PDFEmbeddedFileStream> |
getEmbeddedFiles()
Returns the embedded files in this document. |
PDFOutline |
getOutlineRoot()
Returns the root Outlines object. |
String |
toPDF()
Represent the object as PDF. |
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 PDFRoot(PDFDocument doc)
doc
- The parent PDF document.Method Detail |
---|
public void addPage(PDFPage page)
page
- the /Page object to addpublic void addPageLabel(int pageIndex, PDFPageLabel pageLabel)
pageIndex
- The 0-based page index of the first page in this range
label.pageLabel
- The page label instance that handles formatting for page
pageIndex
until the next range label.public PDFNameTree<PDFDestination> getDestinations()
public PDFNameTree<PDFEmbeddedFileStream> getEmbeddedFiles()
public PDFOutline getOutlineRoot()
public String toPDF()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |