PdfTextStyle
12 Sep 20251 minute to read
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 theboldtext style. -
italic- Specifies theitalictext style. -
regular- Specifies theregulartext style.