XPDFViewer_GetImageSelectionRect

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

Get the rect of image selection.

EditionBusiness
Introduced1.0.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
viewerName

The name of the viewer.

Example
put XPDFViewer_GetImageSelectionRect("Document1") into theSelectionRect
Values
NameTypeDescription
return

Rectangle in stack coordinates or 0,0,0,0 if no selection.

Description

If there is no image selection the function returns 0,0,0,0. Coordinates are in stack coordinates. Adjust the returned rect by the topLeft of the RECT property (viewport) to get coordinates relative to the PDF page.

The following errors may be thrown by the command:

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