Skip to main content

XPDFViewer_GetSelectionUnicode

Type​

command

Summary​

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

Syntax​

XPDFViewer_GetSelectionUnicode <viewerName>, <variableName>

Description​

The following errors may be thrown by the command:

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

Parameters​

NameTypeDescription

viewerName

string

The name of the viewer.

pageNumber

integer

The pageNumber to return the text of.

variableName

string

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

Examples​

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

Compatibility and Support​

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?