|
fop 2.3 | |||||||||
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.PDFRoot
public class PDFRoot
Class representing a Root (/Catalog) object.
Field Summary | |
---|---|
static int |
PAGEMODE_FULLSCREEN
Full screen page mode |
static int |
PAGEMODE_USENONE
Use no page mode setting, default |
static int |
PAGEMODE_USEOUTLINES
Use outlines page mode to show bookmarks |
static int |
PAGEMODE_USETHUMBS
Use thumbs page mode to show thumbnail images |
Fields inherited from class org.apache.fop.pdf.PDFDictionary |
---|
entries, order |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
log |
Constructor Summary | |
---|---|
PDFRoot(PDFDocument document,
PDFPages pages)
create a Root (/Catalog) object. |
Method Summary | |
---|---|
void |
addAF(PDFFileSpec fileSpec,
java.lang.String filename)
|
void |
addOutputIntent(PDFOutputIntent outputIntent)
Adds an OutputIntent to the PDF |
void |
addPage(PDFPage page)
add a /Page object to the root /Pages object |
PDFDPartRoot |
getDPartRoot()
|
java.lang.String |
getLanguage()
Returns the language identifier of the document. |
PDFDictionary |
getMarkInfo()
Returns the MarkInfo dictionary. |
PDFMetadata |
getMetadata()
Returns the /Metadata object |
PDFNames |
getNames()
Returns the /Names object. |
PDFArray |
getOutputIntents()
Returns the /OutputIntents array. |
PDFPageLabels |
getPageLabels()
Returns the /PageLabels object. |
int |
getPageMode()
Returns the currently active /PageMode. |
PDFOutline |
getRootOutline()
Get the root PDF outline for the document. |
PDFPages |
getRootPages()
Returns the /PageLabels object. |
PDFStructTreeRoot |
getStructTreeRoot()
Returns the StructTreeRoot object. |
void |
makeTagged()
Marks this document as conforming to the Tagged PDF conventions. |
int |
output(java.io.OutputStream stream)
Write the PDF represention of this object |
void |
setLanguage(java.util.Locale locale)
Sets the locale of the document. |
void |
setMetadata(PDFMetadata meta)
Set the optional Metadata object. |
void |
setNames(PDFNames names)
Set the /Names object. |
void |
setPageLabels(PDFPageLabels pageLabels)
Sets the /PageLabels object. |
void |
setPageMode(int mode)
Set the page mode for the PDF document. |
void |
setRootOutline(PDFOutline out)
Set the root outline for the PDF document. |
void |
setRootPages(PDFPages pages)
set the root /Pages object |
void |
setStructTreeRoot(PDFStructTreeRoot structTreeRoot)
Sets the StructTreeRoot object. |
Methods inherited from class org.apache.fop.pdf.PDFDictionary |
---|
containsKey, get, getChildren, getChildren, keySet, put, put, remove, writeDictionary |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PAGEMODE_USENONE
public static final int PAGEMODE_USEOUTLINES
public static final int PAGEMODE_USETHUMBS
public static final int PAGEMODE_FULLSCREEN
Constructor Detail |
---|
public PDFRoot(PDFDocument document, PDFPages pages)
document
- TODOpages
- the PDFPages objectMethod Detail |
---|
public int output(java.io.OutputStream stream) throws java.io.IOException
output
in class PDFDictionary
stream
- the stream to write the PDF to
java.io.IOException
- if there is an error writing to the streampublic void setPageMode(int mode)
mode
- the page mode (one of PAGEMODE_*)public int getPageMode()
public void addPage(PDFPage page)
page
- the /Page object to addpublic void setRootPages(PDFPages pages)
pages
- the /Pages object to set as rootpublic PDFPages getRootPages()
public void setPageLabels(PDFPageLabels pageLabels)
pageLabels
- the /PageLabels objectpublic PDFPageLabels getPageLabels()
public void setRootOutline(PDFOutline out)
out
- the root PDF Outlinepublic PDFOutline getRootOutline()
public void setNames(PDFNames names)
names
- the Names objectpublic PDFNames getNames()
public void setMetadata(PDFMetadata meta)
meta
- the Metadata objectpublic PDFMetadata getMetadata()
public PDFArray getOutputIntents()
public void addOutputIntent(PDFOutputIntent outputIntent)
outputIntent
- the OutputIntent dictionarypublic java.lang.String getLanguage()
public void setLanguage(java.util.Locale locale)
locale
- the locale of the document.public void setStructTreeRoot(PDFStructTreeRoot structTreeRoot)
structTreeRoot
- of this documentpublic PDFStructTreeRoot getStructTreeRoot()
public void makeTagged()
public PDFDictionary getMarkInfo()
public PDFDPartRoot getDPartRoot()
public void addAF(PDFFileSpec fileSpec, java.lang.String filename)
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |