LEADTOOLS JavaScript (Leadtools.Annotations.Core)

Pages Property

Show in webframe
Gets or sets an array of integers that contain the pages numbers found in the file.
Syntax
get_pages();
set_pages(value);
Object.defineProperty('pages');

Property Value

TypeDescription
intAn 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.get_pages().length;
            // Get the page numbers
            for (var i = 0; i < pageCount; i++) {
              var pageNumber = info.get_pages()[i];
            }
            
Example

For an example, refer to GetInfo

See Also

Reference

AnnCodecsInfo Object
AnnCodecsInfo Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.