Represents a class for layout result in PDF generation.
// Load an existing document
let document: PdfDocument = new PdfDocument(data);
// Access the first page
let page: PdfPage = document.getPage(0);
// Add the items to list item collection by passing the array of products
let items: PdfListItemCollection = new PdfListItemCollection(['Excel', 'Power', 'Point', 'Word', 'PDF']);
// Create a new ordered list
let list: PdfOrderedList = new PdfOrderedList(items);
// Draw the list and access the layout result
let result: PdfLayoutResult = list.draw(result.page, result.bounds[0], result.bounds[1], result.bounds[2], result.bounds[3]);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
PdfPage
Gets the page associated with the layout result.
number[]
Gets the bounds associated with the layout result.