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
FieldsModifier and TypeFieldDescriptionprivate PdfActionDeprecated.ThePdfActionfor this outline.private ColorDeprecated.Holds value of property color.private intDeprecated.value of the Count-keyprivate PdfDestinationDeprecated.value of the Destination-keyprotected List<PdfOutline>Deprecated.private booleanDeprecated.Holds value of property open.private PdfOutlineDeprecated.value of the Parent-keyprivate PdfIndirectReferenceDeprecated.thePdfIndirectReferenceof this objectprivate intDeprecated.Holds value of property style.private StringDeprecated.Holds value of property tag.protected PdfWriterDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionPdfOutline(PdfOutline parent, PdfAction action, Paragraph title) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, Paragraph title, boolean open) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, PdfString title) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, PdfString title, boolean open) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, String title) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfAction action, String title, boolean open) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, Paragraph title) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, Paragraph title, boolean open) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title, boolean open) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, String title) Deprecated.Constructs aPdfOutline.PdfOutline(PdfOutline parent, PdfDestination destination, String title, boolean open) Deprecated.Constructs aPdfOutline.PdfOutline(PdfWriter writer) Deprecated.Constructs aPdfOutline. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKid(PdfOutline outline) Deprecated.Adds a kid to the outlinegetColor()Deprecated.Getter for property color.(package private) intgetCount()Deprecated.getKids()Deprecated.Returns the kids of this outlineDeprecated.Gets the destination for this outline.intgetStyle()Deprecated.Getter for property style.getTag()Deprecated.Getter for property tag.getTitle()Deprecated.Gets the title of this outlineDeprecated.Gets the indirect reference of thisPdfOutline.(package private) voidinitOutline(PdfOutline parent, String title, boolean open) Deprecated.Helper for the constructors.booleanisOpen()Deprecated.Getter for property open.intlevel()Deprecated.returns the level of this outline.parent()Deprecated.Gets the parent of thisPdfOutline.voidDeprecated.Setter for property color.(package private) voidsetCount(int count) Deprecated.booleansetDestinationPage(PdfIndirectReference pageReference) Deprecated.Set the page of thePdfDestination-object.voidsetIndirectReference(PdfIndirectReference reference) Deprecated.Sets the indirect reference of thisPdfOutline.voidsetKids(List<PdfOutline> kids) Deprecated.Sets the kids of this outlinevoidsetOpen(boolean open) Deprecated.Setter for property open.voidsetStyle(int style) Deprecated.Setter for property style.voidDeprecated.Setter for property tag.voidDeprecated.Sets the title of this outlinevoidtoPdf(PdfWriter writer, OutputStream os) Deprecated.Returns the PDF representation of thisPdfOutline.Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, 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
Deprecated. -
writer
Deprecated. -
reference
Deprecated.thePdfIndirectReferenceof this object -
count
private int countDeprecated.value of the Count-key -
parent
Deprecated.value of the Parent-key -
destination
Deprecated.value of the Destination-key -
action
Deprecated.ThePdfActionfor this outline. -
tag
Deprecated.Holds value of property tag. -
open
private boolean openDeprecated.Holds value of property open. -
color
Deprecated.Holds value of property color. -
style
private int styleDeprecated.Holds value of property style.
-
-
Constructor Details
-
PdfOutline
PdfOutline(PdfWriter writer) Deprecated.Constructs aPdfOutline.This is the constructor for the
outlines object.- Parameters:
writer- The PdfWriter you are adding the outline to
-
PdfOutline
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
-
initOutline
Deprecated.Helper for the constructors.- Parameters:
parent- the parent outlinetitle- the title for this outlineopen-trueif the children are visible
-
setIndirectReference
Deprecated.Sets the indirect reference of thisPdfOutline.- Parameters:
reference- thePdfIndirectReferenceto this outline.
-
indirectReference
Deprecated.Gets the indirect reference of thisPdfOutline.- Returns:
- the
PdfIndirectReferenceto this outline.
-
parent
Deprecated.Gets the parent of thisPdfOutline.- Returns:
- the
PdfOutlinethat is the parent of this outline.
-
setDestinationPage
Deprecated.Set the page of thePdfDestination-object.- Parameters:
pageReference- indirect reference to the page- Returns:
trueif this page was set as thePdfDestination-page.
-
getPdfDestination
Deprecated.Gets the destination for this outline.- Returns:
- the destination
-
getCount
int getCount()Deprecated. -
setCount
void setCount(int count) Deprecated. -
level
public int level()Deprecated.returns the level of this outline.- Returns:
- a level
-
toPdf
Deprecated.Returns the PDF representation of thisPdfOutline.- Overrides:
toPdfin classPdfDictionary- Parameters:
writer- the encryption informationos- the OutputStream o write the bytes to- Throws:
IOException- on error of super.toPdf()
-
addKid
Deprecated.Adds a kid to the outline- Parameters:
outline- the PdfOutline to add a kid to
-
getKids
Deprecated.Returns the kids of this outline- Returns:
- an ArrayList with PdfOutlines
-
setKids
Deprecated.Sets the kids of this outline- Parameters:
kids- the kids of the outline
-
getTag
Deprecated.Getter for property tag.- Returns:
- Value of property tag.
-
setTag
Deprecated.Setter for property tag.- Parameters:
tag- New value of property tag.
-
getTitle
Deprecated.Gets the title of this outline- Returns:
- the title as a String
-
setTitle
Deprecated.Sets the title of this outline- Parameters:
title- the title of the outline
-
isOpen
public boolean isOpen()Deprecated.Getter for property open.- Returns:
- Value of property open.
-
setOpen
public void setOpen(boolean open) Deprecated.Setter for property open.- Parameters:
open- New value of property open.
-
getColor
Deprecated.Getter for property color.- Returns:
- Value of property color.
-
setColor
Deprecated.Setter for property color.- Parameters:
color- New value of property color.
-
getStyle
public int getStyle()Deprecated.Getter for property style.- Returns:
- Value of property style.
-
setStyle
public void setStyle(int style) Deprecated.Setter for property style.- Parameters:
style- New value of property style.
-