| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PDPage | Returns: The page that this outline will go to when activated or null if it does not point to anything.The document to get the page from. doc)This method will attempt to find the page in this PDF document that this outline points to. |
| public PDAction | |
| public PDDestination | |
| public PDOutlineItem | |
| public PDOutlineItem | Returns: The previous sibling.Return the previous sibling or null if there is no sibling. |
| public PDStructureElement | Returns: The structure element of this node.Get the structure element of this node. |
| public PDColor | |
| public String | |
| public void | insertSiblingAfter(PDOutlineItem
The item to insert. newSibling)Insert a single sibling after this node. |
| public void | insertSiblingBefore(PDOutlineItem
The item to insert. newSibling)Insert a single sibling before this node. |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | setDestination(PDDestination
The new page destination for this node. dest)Set the page destination for this node. |
| public void | setDestination(PDPage
The page to refer to. page)A convenience method that will create an XYZ destination using only the defaults. |
| public void | |
| pack-priv void | setNextSibling(PDOutlineNode
The new next sibling. outlineNode)Set the next sibling, this will be maintained by this class. |
| pack-priv void | setPreviousSibling(PDOutlineNode
The new previous sibling. outlineNode)Set the previous sibling, this will be maintained by this class. |
| public void | setStructureElement(PDStructureElement
The new structure element for this node. structureElement)Set the structure element for this node. |
| public void | |
| public void | |
| public void |
| BOLD_FLAG | back to summary |
|---|---|
| private static final int BOLD_FLAG | |
| ITALIC_FLAG | back to summary |
|---|---|
| private static final int ITALIC_FLAG | |
| PDOutlineItem | back to summary |
|---|---|
| public PDOutlineItem() Default Constructor. | |
| PDOutlineItem | back to summary |
|---|---|
| public PDOutlineItem(COSDictionary dic) Constructor for an existing outline item.
| |
| findDestinationPage | back to summary |
|---|---|
| public PDPage findDestinationPage(PDDocument doc) throws IOException This method will attempt to find the page in this PDF document that this outline points to. If the outline does not point to anything then this method will return null. If the outline is an action that is not a GoTo action then this method will also return null.
| |
| getAction | back to summary |
|---|---|
| public PDAction getAction() Get the action of this node.
| |
| getDestination | back to summary |
|---|---|
| public PDDestination getDestination() throws IOException Get the page destination of this node.
| |
| getNextSibling | back to summary |
|---|---|
public PDOutlineItem getNextSibling()
| |
| getPreviousSibling | back to summary |
|---|---|
| public PDOutlineItem getPreviousSibling() Return the previous sibling or null if there is no sibling.
| |
| getStructureElement | back to summary |
|---|---|
| public PDStructureElement getStructureElement() Get the structure element of this node.
| |
| getTextColor | back to summary |
|---|---|
| public PDColor getTextColor() Get the RGB text color of this node. Default is black and this method will never return null.
| |
| getTitle | back to summary |
|---|---|
| public String getTitle() Get the title of this node.
| |
| insertSiblingAfter | back to summary |
|---|---|
| public void insertSiblingAfter(PDOutlineItem newSibling) Insert a single sibling after this node.
| |
| insertSiblingBefore | back to summary |
|---|---|
| public void insertSiblingBefore(PDOutlineItem newSibling) Insert a single sibling before this node.
| |
| isBold | back to summary |
|---|---|
| public boolean isBold() A flag telling if the text should be bold.
| |
| isItalic | back to summary |
|---|---|
| public boolean isItalic() A flag telling if the text should be italic.
| |
| setAction | back to summary |
|---|---|
| public void setAction(PDAction action) Set the action for this node.
| |
| setBold | back to summary |
|---|---|
| public void setBold(boolean bold) Set the bold property of the text.
| |
| setDestination | back to summary |
|---|---|
| public void setDestination(PDDestination dest) Set the page destination for this node.
| |
| setDestination | back to summary |
|---|---|
| public void setDestination(PDPage page) A convenience method that will create an XYZ destination using only the defaults.
| |
| setItalic | back to summary |
|---|---|
| public void setItalic(boolean italic) Set the italic property of the text.
| |
| setNextSibling | back to summary |
|---|---|
| pack-priv void setNextSibling(PDOutlineNode outlineNode) Set the next sibling, this will be maintained by this class.
| |
| setPreviousSibling | back to summary |
|---|---|
| pack-priv void setPreviousSibling(PDOutlineNode outlineNode) Set the previous sibling, this will be maintained by this class.
| |
| setStructureElement | back to summary |
|---|---|
| public void setStructureElement(PDStructureElement structureElement) Set the structure element for this node.
| |
| setTextColor | back to summary |
|---|---|
| public void setTextColor(PDColor textColor) Set the RGB text color for this node.
| |
| setTextColor | back to summary |
|---|---|
| public void setTextColor(Color textColor) Set the RGB text color for this node.
| |
| setTitle | back to summary |
|---|---|
| public void setTitle(String title) Set the title for this node.
| |