enablePages Method

Summary

Marks the specified pages as enabled.

Syntax
TypeScript
JavaScript
DocumentViewer.prototype.enablePages = function( 
   pageNumbers 
) 
enablePages( 
   pageNumbers: number[] 
): void; 

Parameters

pageNumbers

Page numbers to enable. This should be one or more item with 1-based page numbers. Use null to mark all the pages in the document viewer.

Remarks

This method performs the following:

For each page number specified in pageNumbers.

  1. Finds the corresponding DocumentPage object and sets the value of DocumentPage.IsDeleted to false.

  2. Enables the corresponding AnnContainer, if any.

  3. Enables text operations of the page.

The Operation event will occur for each page with DocumentViewerOperation set to pageEnabled.

Note: Enabled pages are visible in the viewer and are active to user input (for instance, selecting text and editing annotations are possible) and will be part of the final document if it is converted.

Requirements

Target Platforms

Help Version 22.0.2023.4.18
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.