Syncfusion AI Assistant

How can I help you?

Select multi-page annotations in TypeScript PDF Viewer

14 Oct 20251 minute to read

Select a multi-page TextMarkup annotation as a single annotation by enabling the enableMultiPageAnnotation property (default: false).

The following example shows how to select, export, and import a multi-page annotation:

// Enable multi-page TextMarkup Annotation.
viewer.enableMultiPageAnnotation = true;

// Export Annotation
document.getElementById('export').addEventListener('click', () => {
  viewer.exportAnnotation();
});

// Import Annotation.
document.getElementById('import').addEventListener('click', () => {
  viewer.importAnnotation("Add Export annotation file content");
});

Find the sample: Select a multi-page TextMarkup annotation as a single annotation