How can I help you?
ScopeType
6 Feb 20261 minute to read
Represents the scope type of tag.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Initialize a new instance of the `PdfDataExtractor` class
let extractor: PdfDataExtractor = new PdfDataExtractor(document);
// Get the page from the PDF document
let page: PdfPage = document.getPage(0);
// Extract structure elements from a particular page in the PDF document
let pageElements: PdfStructureElement[] = extractor.getStructureElements(page);
// Extract the scope type of the first element
let element: PdfStructureElement = pageElements[0];
let scope: ScopeType = element.scope;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
both- Specifiesbothscope, meaning row and column types of scope are specified. -
column- Specifiescolumntype of scope. -
none- Specifiesnonescope, meaning no scope type is specified. -
row- Specifiesrowtype of scope.