[]
DsPdfJS API / OutlineNode
Defines the outline node within PDF document.
new OutlineNode(
om,title?,action?,expanded?):OutlineNode
Initialize a new instance of the OutlineNode class.
ObjectManager that controls the lifetime of the OutlineNode.
string
The title of OutlineNode.
The action which should be performed or destination defining the new document view.
DestinationProperties | ActionProperties | ActionBase | DestinationBase
boolean
Indicates whether the node should be expanded.
OutlineNode
ObjectBase.constructor
new OutlineNode(
title?,action?,expanded?):OutlineNode
Initialize a new instance of the OutlineNode class.
string
The title of OutlineNode.
The action which should be performed or destination defining the new document view.
DestinationProperties | ActionProperties | ActionBase | DestinationBase
boolean
Indicates whether the node should be expanded.
OutlineNode
ObjectBase.constructor
get action():
ActionBase|null
Gets or sets the ActionBase to be performed when this OutlineNode is activated. If both 'dest' and 'action' are specified, the viewer application will determine the behavior, which may be unpredictable. For consistent results, specify only one.
ActionBase | null
set action(
value):void
Gets or sets the ActionBase to be performed when this OutlineNode is activated. If both 'dest' and 'action' are specified, the viewer application will determine the behavior, which may be unpredictable. For consistent results, specify only one.
ActionProperties | ActionBase | null
void
get children():
OutlineNodeCollection
Gets the OutlineNodeCollection collection containing child nodes.
get dest():
DestinationBase|null
Gets or sets the DestinationBase to be displayed when this OutlineNode is activated. If both 'dest' and 'action' are specified, the viewer application will determine the behavior, which may be unpredictable. For consistent results, specify only one.
DestinationBase | null
set dest(
value):void
Gets or sets the DestinationBase to be displayed when this OutlineNode is activated. If both 'dest' and 'action' are specified, the viewer application will determine the behavior, which may be unpredictable. For consistent results, specify only one.
DestinationProperties | DestinationBase | null
void
get doc():
PdfDocument|null
Gets the PdfDocument owning this object.
PdfDocument | null
get expanded():
boolean
Gets or sets a value indicating whether this OutlineNode expanded and its child nodes are visible.
boolean
set expanded(
value):void
Gets or sets a value indicating whether this OutlineNode expanded and its child nodes are visible.
boolean
void
get hasChildren():
boolean
Gets a value indicating whether children collection is not empty.
boolean
get id():
number
Gets the reference to the object.
number
get om():
ObjectManager
Gets the owner ObjectManager instance.
get owner():
OutlineNodeCollection|null
Gets the OutlineNodeCollection collection containing this object.
OutlineNodeCollection | null
get parent():
OutlineNode|null
Gets the parent OutlineNode.
OutlineNode | null
get textColor():
Color
Gets or sets the text color of the outline node.
set textColor(
value):void
Gets or sets the text color of the outline node.
void
get textStyle():
OutlineNodeFontStyle
Gets or sets the text style of the outline node.
set textStyle(
value):void
Gets or sets the text style of the outline node.
void
get title():
string|null
Gets or sets the title of the outline node.
string | null
set title(
value):void
Gets or sets the title of the outline node.
string | null
void
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void