Package pdf
Class PDFCatalog
- java.lang.Object
-
- pdf.PDFObject
-
- pdf.PDFCatalog
-
- All Implemented Interfaces:
java.io.Serializable
public class PDFCatalog extends PDFObject
This class implements the PDF Catalog, also known as the root node
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class pdf.PDFObject
objser, pdfDocument
-
-
Constructor Summary
Constructors Constructor Description PDFCatalog(PDFPageList pdfPageList, int pagemode)This constructs a PDF Catalog object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetOutline(PDFOutline outline)This sets the root outline objectvoidwrite(java.io.OutputStream os)Writes the object to the output stream.-
Methods inherited from class pdf.PDFObject
getPDFDocument, getSerialID, getType, toArray, toString, writeEnd, writeStart
-
-
-
-
Constructor Detail
-
PDFCatalog
public PDFCatalog(PDFPageList pdfPageList, int pagemode)
This constructs a PDF Catalog object- Parameters:
pdfPageList- The PDFPageList object that's the root of the documents page treepagemode- How the document should appear when opened. Allowed values are USENONE, USEOUTLINES, USETHUMBS or FULLSCREEN.
-
-
Method Detail
-
setOutline
protected void setOutline(PDFOutline outline)
This sets the root outline object- Parameters:
outline- The root outline
-
write
public void write(java.io.OutputStream os) throws java.io.IOExceptionDescription copied from class:PDFObjectWrites the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
-
-