Public enum to define text style.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Get the bookmarks
let bookmarks: PdfBookmarkBase = document.bookmarks;
// Gets bookmark at the specified index
let bookmark : PdfBookMark = bookmarks.at(0) as PdfBookMark;
// Gets the textStyle
let textStyle: PdfTextStyle = bookmark.textStyle;
// Destroy the document
document.destroy();bold - Specifies the bold text style.italic - Specifies the italic text style.regular - Specifies the regular text style.