Package com.evopdf
Class Bookmark
java.lang.Object
com.evopdf.Bookmark
This class represents a bookmark in the PDF document used to outline a
section of the PDF document
-
Constructor Summary
ConstructorsConstructorDescriptionBookmark(String text, ExplicitDestination destination) Constructs a bookmark object with the given text and destination that can be added to a PDF document object -
Method Summary
Modifier and TypeMethodDescriptioncolor()Gets the bookmark text colorGets the bookmark destinationGets the parent bookmark of this bookmark or null if the bookmark has no parentvoidSets the bookmark text colorvoidsetDestination(ExplicitDestination destination) Sets the bookmark destinationvoidsetStyle(int style) Sets the bookmark text style as a bitwise OR of flags fromPdfBookmarkStyleclassvoidSets the PDF bookmark text displayed in PDF documentintstyle()Gets the bookmark text style as a bitwise OR of flags fromPdfBookmarkStyleclasstext()Gets the PDF bookmark text displayed in PDF document
-
Constructor Details
-
Bookmark
Constructs a bookmark object with the given text and destination that can be added to a PDF document object- Parameters:
text- the bookmark textdestination- the bookmark destination
-
-
Method Details
-
text
Gets the PDF bookmark text displayed in PDF document- Returns:
- the PDF bookmark text displayed in PDF document
-
setText
Sets the PDF bookmark text displayed in PDF document- Parameters:
text- the PDF bookmark text to set
-
color
Gets the bookmark text color- Returns:
- the bookmark text color
-
setColor
Sets the bookmark text color- Parameters:
color- the bookmark text color to set
-
style
public int style()Gets the bookmark text style as a bitwise OR of flags fromPdfBookmarkStyleclass- Returns:
- the bookmark text style
-
setStyle
public void setStyle(int style) Sets the bookmark text style as a bitwise OR of flags fromPdfBookmarkStyleclass- Parameters:
style- the bookmark text style as a bitwise OR of flags fromPdfBookmarkStyleclass
-
destination
Gets the bookmark destination- Returns:
- the bookmark destination
-
setDestination
Sets the bookmark destination- Parameters:
destination- the bookmark destination to set
-
parentBookmark
Gets the parent bookmark of this bookmark or null if the bookmark has no parent- Returns:
- the parent bookmark
-