public class PdfOutline extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_BOLD |
static int |
FLAG_ITALIC |
| Modifier | Constructor and Description |
|---|---|
protected |
PdfOutline(PdfDocument doc)
This constructor creates root outline in the document.
|
|
PdfOutline(String title,
PdfDictionary content,
PdfDocument pdfDocument) |
|
PdfOutline(String title,
PdfDictionary content,
PdfOutline parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(PdfAction action) |
void |
addDestination(PdfDestination destination) |
PdfOutline |
addOutline(PdfOutline outline) |
PdfOutline |
addOutline(String title)
Adds an
PdfOutline as a child to existing PdfOutline
and put it in the end of the existing PdfOutline children list |
PdfOutline |
addOutline(String title,
int position)
Adds an
PdfOutline as a child to existing PdfOutline
and put it to specified position in the existing PdfOutline children list |
List<PdfOutline> |
getAllChildren() |
PdfDictionary |
getContent() |
PdfDestination |
getDestination() |
PdfOutline |
getParent() |
String |
getTitle() |
void |
setColor(Color color) |
void |
setStyle(int style) |
void |
setTitle(String title) |
public PdfOutline(String title, PdfDictionary content, PdfDocument pdfDocument)
public PdfOutline(String title, PdfDictionary content, PdfOutline parent)
protected PdfOutline(PdfDocument doc)
doc - PdfExceptionpublic String getTitle()
public void setTitle(String title)
public void setColor(Color color)
public void setStyle(int style)
public PdfDictionary getContent()
public List<PdfOutline> getAllChildren()
public PdfOutline getParent()
public PdfDestination getDestination()
public void addDestination(PdfDestination destination)
public void addAction(PdfAction action)
public PdfOutline addOutline(String title)
PdfOutline as a child to existing PdfOutline
and put it in the end of the existing PdfOutline children listtitle - an outline titlePdfExceptionpublic PdfOutline addOutline(String title, int position)
PdfOutline as a child to existing PdfOutline
and put it to specified position in the existing PdfOutline children listtitle - an outline titleposition - a position in the current outline child List where a new outline should be added.
If the position equals -1, then the outline will be put in the end of children list.PdfExceptionpublic PdfOutline addOutline(PdfOutline outline)
Copyright © 1998–2016 iText Group NV. All rights reserved.