XPDFViewer_GetImageSelectionRange

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

Get the current image selectionRange from a PDF Viewer.

EditionBusiness
Introduced1.0.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
viewerName

The name of the viewer.

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

The selectionRange.

Description

The function returns the range as pageNumber, left, top, right, bottom. The coordinates are real numbers in pdf coordinates rather than integers stack coordinates.

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