Syncfusion AI Assistant

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 - Specifies both scope, meaning row and column types of scope are specified.
  • column - Specifies column type of scope.
  • none - Specifies none scope, meaning no scope type is specified.
  • row - Specifies row type of scope.