XPDFViewer_SelectImage

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
XPDFViewer_SelectImage <viewerName>, <pageNumber>, <left>, <top>, <right>, <bottom>
Associationsxpdf
Summary

Set the current image selection of the PDF Viewer to a specific range.

EditionBusiness
Introduced1.0.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
viewerName

The name of the viewer.

pageNumber

The page the selection is on.

left

The left of the selection

top

The top of the selection

right

The right of the selection

bottom

The bottom of the selection

Example
XPDFViewer_SelectImage "Document1", 1, 10.5, 100.2, 200, 130.4
// Clear the selection
XPDFViewer_SelectImage "Document1",""
Description

The coordinates are real numbers in pdf coordinates rather than integers stack coordinates.

The following errors may be thrown by the command:

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