XPDFViewer_GetSelectionUnicode |
Type | command |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | XPDFViewer_GetSelectionUnicode <viewerName>, <variableName>
|
Associations | xpdf |
Summary | This command sets the value of a named variable to the UTF16 encoded text of the current selection.
|
Edition | Business |
Introduced | 1.0.0 |
OS | mac, windows |
Platforms | desktop |
Parameters | Name | Type | Description |
---|
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
|
Tags | externals |