Skip to main content

XPDF

Type

library

Description

XPDF is an external for viewing, selecting and extracting text and images from PDF files.

Associated Syntax

Command

NameSummarySyntax
XPDFViewer_OpenCreate a named PDF Viewer associated with a specific stack window.XPDFViewer_Open <viewerName>, <stackWindowId>
XPDFViewer_GoToPageNavigate to a page using either one of the four navigation constants or a specific pageNumber.XPDFViewer_GoToPage <viewerName>, {"last" | "first" | "next" | "prev" | <pageNumber>}
XPDFViewer_ChooseMouseModeChoose a mouse mode. The viewer defaults to browse mode. Choose selection to select text.XPDFViewer_ChooseMouseMode <viewerName>, {"selection" | "browse" | "image" }
XPDFViewer_ZoomZoom the page using either one of the five zoom constants or a specified percentage.XPDFViewer_Zoom <viewerName>, {"width" | "fit" | "actual" | "in" | "out" | <percent>}
XPDFViewer_CloseClose an open PDF view.XPDFViewer_Close <viewerName>
XPDFViewer_SetSet a property of the PDF Viewer.XPDFViewer_Set <viewerName>, <property>, <value>
XPDFViewer_UnicodeThis command sets the value of a named variable to the UTF16 encoded text of a specific page.XPDFViewer_Unicode <viewerName>, <pageNumber>, <variableName>
XPDFViewer_ImageThis command sets the value of a named variable to the imageData of the rendered page.XPDFViewer_Image <viewerName>, <pageNumber>, <variableName>
XPDFViewer_GetSelectionUnicodeThis command sets the value of a named variable to the UTF16 encoded text of the current selection.XPDFViewer_GetSelectionUnicode <viewerName>, <variableName>
XPDFViewer_SelectSet the current selection of the PDF Viewer to a specific range.XPDFViewer_Select <viewerName>, <startPageNumber>, <startCharOnPage>, <endPageNumber>, <endCharOnPage>
XPDFViewer_GetSelectionImageThis command sets the value of a named variable to the imageData of the current image selection.XPDFViewer_GetSelectionImage <viewerName>, <variableName>
XPDFViewer_SelectImageSet the current image selection of the PDF Viewer to a specific range.XPDFViewer_SelectImage <viewerName>, <pageNumber>, <left>, <top>, <right>, <bottom>

Function

NameSummarySyntax
XPDFViewer_GetGet the value of a property from a PDF Viewer.XPDFViewer_Get(<viewerName>, <property>)
XPDFViewer_TextReturn the text of a page in ANSI.XPDFViewer_Text(<viewerName>, <pageNumber>)
XPDFViewer_CharacterCountCount the number of characters on a page.XPDFViewer_CharacterCount(<viewerName>, <pageNumber>)
XPDFViewer_GetSelectionRectGet the rect of the portion of the selection that appears on the currently loaded page.XPDFViewer_GetSelectionRect(<viewerName>[, <pageNumber>])
XPDFViewer_GetSelectionTextReturn the selected text in ANSI.XPDFViewer_GetSelectionText(<viewerName>)
XPDFViewer_GetSelectionRangeGet the current selectionRange from a PDF Viewer.XPDFViewer_GetSelectionRange(<viewerName>)
XPDFViewer_GetImageSelectionRectGet the rect of image selection.XPDFViewer_GetImageSelectionRect(<viewerName>)
XPDFViewer_GetImageSelectionRangeGet the current image selectionRange from a PDF Viewer.XPDFViewer_GetImageSelectionRange(<viewerName>)

Message

NameSummarySyntax
XPDF_ScrollTopOfPageSent to the current card when scrolling to the top of pageXPDF_ScrollTopOfPage
XPDF_SelectTopOfPageSent to the current card when selecting to the top of pageXPDF_SelectTopOfPage
XPDF_ScrollBottomOfPageSent to the current card when scrolling to the bottom of pageXPDF_ScrollBottomOfPage
XPDF_SelectBottomOfPageSent to the current card when selecting to the bottom of pageXPDF_SelectBottomOfPage
XPDF_SelectionChangedSent to the current card when the user changes the text selectionXPDF_SelectionChanged <selectionRange>
XPDF_ImageSelectionChangedSent to the current card when the user changes the image selectionXPDF_ImageSelectionChanged <selectionRange>
XPDF_ScrollbarDraggedSent to the current card when the user scrolls the viewXPDF_ScrollbarDragged <scroll>
XPDF_LinkClickedSent to the current card when the user scrolls the viewXPDF_LinkClicked <link>
Thank you for your feedback!

Was this page helpful?