pages Property

Summary

Gets or sets an array of integers that contain the pages numbers found in the file.

Syntax
TypeScript
JavaScript
Object.defineProperty(AnnCodecsInfo.prototype, 'pages', 
	get: function(), 
	set: function(value) 
) 
pages: number[]; 

Property Value

An array of integers that contain the pages numbers found in the file.

Remarks

If the file contains valid LEADTOOLS Annotations, the value of Pages will be an array of integers which contain the number of each page found in the file where each page is an Annotations Container.

To get the number of pages (and their values) in the file, use the following code:

// Get the number of pages 
var pageCount = info.pages.length; 
// Get the page numbers 
for (var i = 0; i < pageCount; i++) { 
var pageNumber = info.pages[i]; 
} 

Example

For an example, refer to GetInfo

Requirements

Target Platforms

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

Leadtools.Annotations.Engine Assembly