Represents the items of the list.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access the first page
let page: PdfPage = document.getPage(0);
// Create an instance of list item collection by passing the string array
let items: PdfListItemCollection = new PdfListItemCollection(['Excel', 'Power', 'Point', 'Word']);
// Create a new list item and add into the collection
items.add(new PdfListItem('PDF'));
// Create a new PDF ordered list
let list: PdfOrderedList = new PdfOrderedList(items);
// Draw the list items
list.draw(page, 0, 20);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
PdfBrush
Gets the brush associated with the list item.
PdfFont
Get the PdfFont
object associated with the list item.
PdfPen
Gets the PdfPen
object associated with the list item.
PdfStringFormat
Gets the PdfStringFormat
object associated with the list item.
PdfList
Get the sub-list associated with the current list item.
string
Gets the text content of the list item.
number
Gets the text indent of the list.