#include <PdfOutlines.h>
A PDF outline item has an title and a destination. It is an element in the documents outline which shows its hierarchical structure.
- See also
- PdfDocument
-
PdfOutlines
-
PdfDestination
◆ PdfOutlineItem() [1/4]
Create a new PdfOutlineItem dictionary
- Parameters
-
| parent | parent vector of objects |
◆ PdfOutlineItem() [2/4]
Create a new PdfOutlineItem from scratch
- Parameters
-
| title | title of this item |
| dest | destination of this item |
| parentOutline | parent of this outline item in the outline item hierarchie |
| parent | parent vector of objects which is required to create new objects |
◆ PdfOutlineItem() [3/4]
Create a new PdfOutlineItem from scratch
- Parameters
-
| title | title of this item |
| action | action of this item |
| parentOutline | parent of this outline item in the outline item hierarchie |
| parent | parent vector of objects which is required to create new objects |
◆ PdfOutlineItem() [4/4]
Create a PdfOutlineItem from an existing PdfObject
- Parameters
-
| obj | an existing outline item |
| parentOutline | parent of this outline item in the outline item hierarchie |
| previous | previous item of this item |
◆ CreateChild()
Create a PdfOutlineItem that is a child of this item
- Parameters
-
| title | title of this item |
| dest | destination of this item |
◆ CreateNext() [1/2]
Create a PdfOutlineItem that is on the same level and follows the current item.
- Parameters
-
| title | title of this item |
| action | action of this item |
◆ CreateNext() [2/2]
Create a PdfOutlineItem that is on the same level and follows the current item.
- Parameters
-
| title | title of this item |
| dest | destination of this item |
◆ Erase()
| void PdfOutlineItem::Erase |
( |
| ) |
|
Deletes this outline item and all its children from the outline hierarchy and removes all objects from the list of PdfObjects All pointers to this item will be invalid after this function call.
◆ First()
- Returns
- the first outline item that is a child of this item
◆ GetAction()
| shared_ptr< PdfAction > PdfOutlineItem::GetAction |
( |
| ) |
const |
Get the action of this outline.
- Returns
- the action, if there is one, or nullptr
◆ GetDestination()
Get the destination of this outline.
- Returns
- the destination, if there is one, or nullptr
◆ GetParentOutline()
- Returns
- the parent item of this item or nullptr if it is the top level outlines dictionary
◆ GetTextColorBlue()
| double PdfOutlineItem::GetTextColorBlue |
( |
| ) |
const |
Get the color of the title of this item. Supported since PDF 1.4.
- Returns
- the red color component
- See also
- SetTextColor
◆ GetTextColorGreen()
| double PdfOutlineItem::GetTextColorGreen |
( |
| ) |
const |
Get the color of the title of this item. Supported since PDF 1.4.
- Returns
- the red color component
- See also
- SetTextColor
◆ GetTextColorRed()
| double PdfOutlineItem::GetTextColorRed |
( |
| ) |
const |
Get the color of the title of this item. Supported since PDF 1.4.
- Returns
- the red color component
- See also
- SetTextColor
◆ GetTextFormat()
Get the text format of the title
- Returns
- the text format of the title
◆ GetTitle()
| const PdfString & PdfOutlineItem::GetTitle |
( |
| ) |
const |
Get the title of this item
- Returns
- the title as PdfString
◆ InsertChild()
Inserts a new PdfOutlineItem as a child of this outline item. The former can't be in the same tree as this one, as the tree property would be broken. If this prerequisite is violated, a PdfError exception (code PdfErrorCode::OutlineItemAlreadyPresent) is thrown and nothing is changed. The item inserted is not copied, i.e. Erase() calls affect the original! Therefore also shared ownership is in effect, i.e. deletion by where it comes from damages the data structure it's inserted into.
- Parameters
-
| item | an existing outline item |
◆ Last()
- Returns
- the last outline item that is a child of this item
◆ Next()
- Returns
- the next item or nullptr if this is the last on the current level
◆ Prev()
- Returns
- the previous item or nullptr if this is the first on the current level
◆ SetAction()
| void PdfOutlineItem::SetAction |
( |
const std::shared_ptr< PdfAction > & | action | ) |
|
Set the action of this outline.
- Parameters
-
◆ SetDestination()
| void PdfOutlineItem::SetDestination |
( |
const std::shared_ptr< PdfDestination > & | dest | ) |
|
Set the destination of this outline.
- Parameters
-
◆ SetTextColor()
| void PdfOutlineItem::SetTextColor |
( |
double | r, |
|
|
double | g, |
|
|
double | b ) |
Set the color of the title of this item. This property is supported since PDF 1.4.
- Parameters
-
| r | red color component |
| g | green color component |
| b | blue color component |
◆ SetTextFormat()
Set the text format of the title. Supported since PDF 1.4.
- Parameters
-
| format | the formatting options for the title |
◆ SetTitle()
| void PdfOutlineItem::SetTitle |
( |
const PdfString & | title | ) |
|
Set the title of this outline item
- Parameters
-
The documentation for this class was generated from the following files:
- PdfOutlines.h
- PdfOutlines.cpp