PdfUnorderedListStyle
12 Sep 20251 minute to read
Public enum to define the style used for unordered list.
// Load an existing document
let document: PdfDocument = new PdfDocument(data);
// Access the first page
let page: PdfPage = document.getPage(0);
// Add each item to the collection by passing the string array
let items: PdfListitemCollection = new PdfListitemCollection(['Excel', 'Power', 'Point', 'Word', 'PDF']);
// Create a unordered list and pass the list item collection
let list: PdfUnorderedList = new PdfUnorderedList(items);
// Set the unordered list style for the list items
list.style = PdfUnorderedListStyle.circle;
// Draw the unordered list associated with items
list.draw(page, 0, 20, 500, 700);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
asterisk- Specifies asterisk style. -
circle- Specifies circle style. -
disk- Specifies disk style. -
none- No bulleting at all. -
square- Specifies square style.