XPDFViewer_GetSelectionRange

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
XPDFViewer_GetSelectionRange(<viewerName>)
Associationsxpdf
Summary

Get the current selectionRange from a PDF Viewer.

EditionBusiness
Introduced1.0.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
viewerName

The name of the viewer.

Example
put XPDFViewer_GetSelectionRange("Document1") into theCurrentSelection
Values
NameTypeDescription
return

The selectionRange.

Description

The function returns the range as startPageNumber, startCharOnPage, endPageNumber, endCharOnPage. Insertion point is returned as start page number, char insertion point is after, endPageNumber - same as start, char insertion point is after - 1

If item 1 equals item 3 and item 4 is less than item 2 then it is an insertion point position.

The function will return empty if there is no selection.

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer not found
Tagsexternals