XPDFViewer_Open

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
XPDFViewer_Open <viewerName>, <stackWindowId>
Associationsxpdf
Summary

Create a named PDF Viewer associated with a specific stack window.

EditionBusiness
Introduced1.0.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
viewerName

The name of the viewer to use in subsequent commands.

stackWindowId

This is the windowId property of the stack to display the PDF view on. The parameter is optional or 0 may be passed to enable opening a PDF to extract text without creating a view on a stack.

Example
XPDFViewer_Open "Document1", the windowID of this stack
Description

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer with that name exists
Tagsexternals