XPDFViewer_GetSelectionUnicode

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
XPDFViewer_GetSelectionUnicode <viewerName>, <variableName>
Associationsxpdf
Summary

This command sets the value of a named variable to the UTF16 encoded text of the current selection.

EditionBusiness
Introduced1.0.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
viewerName

The name of the viewer.

pageNumber

The pageNumber to return the text of.

variableName

The name of the variable to set to the unicode text of the page.

Example
local theSelectedText
XPDFViewer_GetSelectionUnicode "Document1", "theSelectedText"
set the text of fld "selected text" to textDecode(theSelectedText,"UTF16")
Description

The following errors may be thrown by the command:

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