Class PdfOutline
PdfOutline is an object that represents a PDF outline entry.
An outline allows a user to access views of a document by name.
This object is described in the 'Portable Document Format Reference Manual version 1.3'
section 6.7 (page 104-106)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPdfOutline(PdfOutline parent, PdfAction action, Paragraph title) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, Paragraph title, boolean open) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, PdfString title) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, PdfString title, boolean open) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, String title) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, String title, boolean open) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, Paragraph title) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, Paragraph title, boolean open) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title, boolean open) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, String title) Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, String title, boolean open) Constructs aPdfOutline. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKid(PdfOutline outline) Adds a kid to the outlinegetColor()Getter for property color.getKids()Returns the kids of this outlineGets the destination for this outline.intgetStyle()Getter for property style.getTag()Getter for property tag.getTitle()Gets the title of this outlineGets the indirect reference of thisPdfOutline.booleanisOpen()Getter for property open.intlevel()returns the level of this outline.parent()Gets the parent of thisPdfOutline.voidSetter for property color.booleansetDestinationPage(PdfIndirectReference pageReference) Set the page of thePdfDestination-object.voidsetIndirectReference(PdfIndirectReference reference) Sets the indirect reference of thisPdfOutline.voidSets the kids of this outlinevoidsetOpen(boolean open) Setter for property open.voidsetStyle(int style) Setter for property style.voidSetter for property tag.voidSets the title of this outlinevoidtoPdf(PdfWriter writer, OutputStream os) Returns the PDF representation of thisPdfOutline.Methods inherited from class com.lowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toStringMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
kids
-
writer
-
-
Constructor Details
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry. The open mode istrue.- Parameters:
parent- the parent of this outline itemaction- thePdfActionfor this outline itemtitle- the title of this outline item
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry.- Parameters:
parent- the parent of this outline itemaction- thePdfActionfor this outline itemtitle- the title of this outline itemopen-trueif the children are visible
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry. The open mode istrue.- Parameters:
parent- the parent of this outline itemdestination- the destination for this outline itemtitle- the title of this outline item
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry.- Parameters:
parent- the parent of this outline itemdestination- the destination for this outline itemtitle- the title of this outline itemopen-trueif the children are visible
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry. The open mode istrue.- Parameters:
parent- the parent of this outline itemaction- thePdfActionfor this outline itemtitle- the title of this outline item
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry.- Parameters:
parent- the parent of this outline itemaction- thePdfActionfor this outline itemtitle- the title of this outline itemopen-trueif the children are visible
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry. The open mode istrue.- Parameters:
parent- the parent of this outline itemdestination- the destination for this outline itemtitle- the title of this outline item
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry.- Parameters:
parent- the parent of this outline itemdestination- the destination for this outline itemtitle- the title of this outline itemopen-trueif the children are visible
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry. The open mode istrue.- Parameters:
parent- the parent of this outline itemaction- thePdfActionfor this outline itemtitle- the title of this outline item
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry.- Parameters:
parent- the parent of this outline itemaction- thePdfActionfor this outline itemtitle- the title of this outline itemopen-trueif the children are visible
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry. The open mode istrue.- Parameters:
parent- the parent of this outline itemdestination- the destination for this outline itemtitle- the title of this outline item
-
PdfOutline
Constructs aPdfOutline.This is the constructor for an
outline entry.- Parameters:
parent- the parent of this outline itemdestination- the destination for this outline itemtitle- the title of this outline itemopen-trueif the children are visible
-
-
Method Details
-
setIndirectReference
Sets the indirect reference of thisPdfOutline.- Parameters:
reference- thePdfIndirectReferenceto this outline.
-
indirectReference
Gets the indirect reference of thisPdfOutline.- Returns:
- the
PdfIndirectReferenceto this outline.
-
parent
Gets the parent of thisPdfOutline.- Returns:
- the
PdfOutlinethat is the parent of this outline.
-
setDestinationPage
Set the page of thePdfDestination-object.- Parameters:
pageReference- indirect reference to the page- Returns:
trueif this page was set as thePdfDestination-page.
-
getPdfDestination
Gets the destination for this outline.- Returns:
- the destination
-
level
public int level()returns the level of this outline.- Returns:
- a level
-
toPdf
Returns the PDF representation of thisPdfOutline.- Overrides:
toPdfin classPdfDictionary- Parameters:
writer- the encryption informationos-- Throws:
IOException
-
addKid
Adds a kid to the outline- Parameters:
outline-
-
getKids
Returns the kids of this outline- Returns:
- an ArrayList with PdfOutlines
-
setKids
Sets the kids of this outline- Parameters:
kids-
-
getTag
Getter for property tag.- Returns:
- Value of property tag.
-
setTag
Setter for property tag.- Parameters:
tag- New value of property tag.
-
getTitle
Gets the title of this outline- Returns:
- the title as a String
-
setTitle
Sets the title of this outline- Parameters:
title-
-
isOpen
public boolean isOpen()Getter for property open.- Returns:
- Value of property open.
-
setOpen
public void setOpen(boolean open) Setter for property open.- Parameters:
open- New value of property open.
-
getColor
Getter for property color.- Returns:
- Value of property color.
-
setColor
Setter for property color.- Parameters:
color- New value of property color.
-
getStyle
public int getStyle()Getter for property style.- Returns:
- Value of property style.
-
setStyle
public void setStyle(int style) Setter for property style.- Parameters:
style- New value of property style.
-