getPageSelection()
Use this method to get page selection information from a multi-page selection.
Use the JavaScript method getPageSelection() to retrieve information on a multi-page selection.
When a user selects a range of pages in the Thumbnails view by using Shift+Click, CTRL+Click, or CTRL+A, a JSON string can be retrieved with the number of selected pages and the total range of all selected pages.
Sample syntax
The following code provides an example of a response JSON from getPageSelection():
{
"pageSelectionInfo": [
{
"name": "PagesSelected",
"value": "232"
},
{
"name": "Pages",
"value": "[1-228, 230, 233-235]"
}
]
}
PagesSelected returns the total number of pages that are selected and
Pages returns a comma-separated array of page ranges that are selected.