Adds a listener for an event. Adding the same function twice for one event has no effect.
Event name.
Listener, called with the event arguments.
Optionaloptions: { once?: boolean }
Listener options.
Optionalonce?: booleanWhen true, the listener is removed after it runs once.
Adds or replaces the user bookmark of a page. Fires userBookmarksChanged.
Page index (0-based).
Bookmark text.
Aborts the load in progress; with a document, fires documentUnloaded and releases the document in the Worker
Turns off the switch that keeps annotations in color when printing.
Annotations are not drawn and cannot be clicked (none found under the pointer); annotations in the document are unchanged
Stops the left and right arrow keys from turning pages.
Stops searching from now on; links already added stay
Composition input applies to Office documents only; this does nothing.
Draws annotation layers in color again.
Draws pages in color again.
Loads annotations in page order again, without reading visible pages first.
Restores the page bitmap caching level that was in effect before enableMemoryRestrictedMode.
Lays out pages from left to right again.
Turns off stylus mode; drawing tools accept touch input again.
Turns off viewport render mode and redraws all pages.
Adds a result to highlight along (as displayAdditionalSearchResults)
A search result.
Adds results obtained elsewhere to highlight along
Search results; ones already present are not added twice.
Jumps to the bookmark's target (fires displayPageLocation, goes to that page and scrolls to the target position); link bookmarks open their address in a new window
A bookmark from Document.getBookmarks. Invalid destinations are ignored with a warning.
Goes to the first page.
Goes to the last page.
Scrolls a point on the page (display-orientation page space, pt, clamped into the page) to the top-left of the viewport; the second argument is the vertical offset
Page number (1-based).
Distance from the top of the page in points.
Distance from the left of the page in points.
Optional_useSmoothScroll: boolean
Unused; kept for compatibility.
Shows a result: adds it to the results, makes it current and scrolls to it (the second argument is a custom scroll function (pageNumber, quads) => void used instead of the default; pass an empty function to not scroll)
A search result.
Optionalscroll: (pageNumber: number, quads: Core.Annotations.Quad[]) => void
Optional function called with the page number (1-based) and the match quads instead of the default scrolling.
Unbinds listeners and clears the page DOM; the viewer is not used afterwards
We read annotations of all pages on load anyway (continuing with the rest when visible pages go first), so nothing to do here
Draws this page's text selection onto canvas, as the page is displayed (with its view and page rotation).
The canvas to draw on; it covers the whole displayed page, so its width is the displayed page width (the page height after a quarter turn).
Page number (1-based).
Annotations stay in color when printing (printing belongs to the UI layer; only the switch is stored here)
Shows annotations and makes them interactive (default)
Left / right arrow keys turn pages (off by default; not when focus is in an input or text is being edited)
Turns URLs in page text into clickable links the first time the pointer moves over a page. Links are not saved to the file.
IME input for Office documents (not for PDF): logs a warning without a document
Draws annotation layers in grayscale
Draws pages in grayscale (CSS filter, display only)
When loading annotations, annotations on visible pages are read first (drawn as soon as read), then the rest
Memory constrained: the page bitmap cache drops to the lowest tier (restored when turned off)
In two-page (facing, cover) modes, lays out pages from right to left
Stylus mode: drawing tools accept only the pen, and fingers scroll as usual
Renders only the part of the page in the viewport (previously only when the whole page was too large)
Returns the active search result.
The result, or undefined when there is none.
Returns the annotation undo and redo history of this viewer.
The annotation history manager.
Returns the annotation manager of this viewer, creating it on first use.
The annotation manager.
Annotations of the current document are fully read (resolves after annotationsLoaded)
With separations on, the density (0–100) of each ink at a point (page coordinates); empty when off. Asks the Worker, so it is asynchronous
Page number (1-based).
Horizontal position in page coordinates.
Vertical position in page coordinates.
A Promise that resolves to one entry per ink, or an empty array when separations are off or no document is loaded.
View rotation + the page's own rotation
Page number (1-based).
The combined rotation in quarter turns clockwise (0 to 3).
Returns the content editing undo and redo history of this viewer.
The content edit history manager.
Returns the content edit manager of this viewer.
The content edit manager.
Returns the display mode manager of this viewer.
The display mode manager.
The part of this page actually rendered; tiles replaced the viewport rectangle of partial rendering, so it equals getViewportRegionRect
Page number (1-based).
The visible region in page coordinates (points), or null when the page is not visible.
Returns the page margin.
Margin in CSS pixels. Defaults to 20.
View rotation of each page
An object mapping each page number (1-based) to its view rotation in quarter turns (0 to 3).
Results: only that page's with a page number, otherwise all (in arrival order)
OptionalpageNumber: number
Page number (1-based); all pages when omitted.
A new array of the results.
Unrotated page width (getPageInfo is the display size including /Rotate; width and height are swapped back at 90° / 270°)
Page number (1-based).
Width in PDF points. Throws when no document is loaded.
Zoom of this page: the one set by setPageZoom if any, otherwise the overall zoom
Page number (1-based).
The zoom level (1 is 100%).
Page under the pointer and PDF coordinates (bottom-left origin, y upward, pt)
A mouse or pointer event, or any object with clientX and clientY.
The page number (1-based; the current page when the pointer is on no page) and the point in PDF coordinates. Throws when no document is loaded.
Page under the pointer (1-based).
Horizontal position in PDF coordinates.
Vertical position in PDF coordinates.
Returns the view rotation, not including the page's own rotation.
OptionalpageNumber: number
Page number (1-based); omit for the rotation of all pages.
The rotation.
Returns the scroll container element.
The element set with setScrollViewElement.
Selected text; with a page number only that page
OptionalpageNumber: number
Page number (1-based); all pages when omitted.
The selected text, or an empty string when nothing is selected.
Quads of the selected text on one page (one quad per line, page coordinates).
Page to read the selection of (1-based).
The quads, or an empty array when nothing is selected on that page.
// Highlight the text the user selected on the current page
const { documentViewer, annotationManager, Annotations } = instance.Core;
const pageNumber = documentViewer.getCurrentPage();
const quads = documentViewer.getSelectedTextQuads(pageNumber);
if (quads.length) {
const highlight = new Annotations.TextHighlightAnnotation({ PageNumber: pageNumber });
highlight.setQuads(quads);
highlight.StrokeColor = new Annotations.Color(255, 230, 0);
await annotationManager.addAnnotation(highlight);
}
Quads of the selected text on every page that has a selection, grouped by page number (one quad per line, page coordinates).
An object mapping page numbers (1-based) to their quads; empty when nothing is selected.
Quads of the selected text: an array for that page with a page number, otherwise grouped by page number.
OptionalpageNumber: number
Page to read the selection of (1-based); omit for every page.
The quads of that page, or an object mapping page numbers to quads when pageNumber is omitted.
Returns the text manager of this viewer (page text cache and selection), creating it on first use.
The text manager.
Returns how far the pointer may be from characters and still select them.
Distance in screen pixels.
Returns a tool by name.
Tool name, such as a ToolNames value.
The tool, or undefined when there is no tool with that name.
One tool instance per ToolNames entry
An object mapping tool names to tools (the same object on every call).
User bookmarks (page index, 0-based → text), unrelated to the document outline
A copy of the bookmarks, keyed by 0-based page index.
Page under the pointer and page coordinates (unrotated page, top-left origin, pt); by the current page when on no page
A mouse or pointer event, or any object with clientX and clientY.
The page number and the point in page coordinates.
Page under the pointer (1-based); the current page when the pointer is on no page.
Horizontal position in page coordinates.
Vertical position in page coordinates.
Page and page coordinates under the last pointer position (used for pasting at the mouse position). null when the pointer has not moved over the viewer yet, or the last position is on no page (the internal getLastMouseLocation falls back to the current page when not on a page; pasting annotations relies on it)
The page number (1-based) and the point in page coordinates, or null.
Page under the pointer (1-based).
Horizontal position in page coordinates.
Vertical position in page coordinates.
Returns the element that holds the page containers.
The element set with setViewerElement.
Size of the page in the viewport: full rotation (page /Rotate + view rotation), zoom not applied
Page number (1-based).
The displayed width and height in PDF points. Throws when no document is loaded.
Displayed height in PDF points.
Displayed width in PDF points.
Intersection of the viewport and the page, display-orientation page space (pt); null when not visible
Page number (1-based).
The visible region, or null when the page is not visible.
Returns the view watermark set with setWatermark.
The watermark options, or null when none is set.
Returns the switch that keeps annotations in color when printing.
true after enableAlwaysPrintAnnotationsInColor; false by default.
Checks whether arrow keys turn pages.
true after enableArrowKeyNavigation; false by default.
Checks whether URLs in page text are turned into links.
true by default.
Checks whether composition input is active.
Always false.
Checks whether annotation layers are drawn in grayscale.
true after enableGrayscaleAnnotationsMode; false by default.
Checks whether pages are drawn in grayscale.
true after enableGrayscaleMode; false by default.
Checks whether viewport render mode is on.
true after enableViewportRenderMode; false by default.
Checks whether memory restricted mode is on.
true after enableMemoryRestrictedMode.
Checks whether two-page modes lay out pages from right to left.
true after enableRightToLeftPageRendering; false by default.
Checks whether stylus mode is on.
true after enableStylusMode; false by default.
Checks whether any text is selected.
true when the selection contains characters.
Also accepts a Document from Core.createDocument (not downloaded or opened again). A later load replaces an earlier one: the earlier one ends with CANCELLED and its document is released, without firing documentLoaded.
A URL, bytes, Blob or File, or a Document created with Core.createDocument.
Optionaloptions: LoadDocumentOptions
Load options such as password, onLoadingProgress, signal and documentId.
A Promise that resolves once the document is open and documentLoaded has fired (annotations keep loading in the background). It rejects when loading fails, when the viewer is unmounted, or with CANCELLED when a later load supersedes it.
Opens an address (for URI actions): given to the handler when set (prefixing https:// to invalid addresses), otherwise Core.openURI
The address to open.
OptionalnewWindow: boolean
Whether to open it in a new window.
Re-lays out after page sizes or rotation change
Optional_pageNumbers: number[]
Unused; kept for compatibility. All pages are laid out again.
Drops all page bitmaps of this document and re-renders visible pages (the old image stays until the new one arrives); fires pagesUpdated (all pages contentChanged, source 'refresh'). Call after changing layers or separations; thumbnails are refetched from it
Drops the cached bitmaps of a page and renders it again.
Page number (1-based).
Removes every listener of every event.
Removes page content from the view (page containers and canvases); re-rendered on demand on updateView / scrolling
Removes a listener, or every listener of the event when fn is omitted.
Event name.
Optionalfn: (...args: ViewerEvents[K]) => void
The function that was passed to addEventListener.
Removes the user bookmark of a page. Fires userBookmarksChanged when it existed.
Page index (0-based).
Replaces the text in search results (from search / getPageSearchResults) with replacement (calls ContentEditManager#replaceText); throws when the results are empty or the first result has no text. Enters content editing mode (and stays in it); one entry in edit history
The results to replace.
The new text.
Asks listeners of beforePermissionAction whether an action may proceed; a listener calls preventDefault() to deny it.
The kind of action: switching to a tool, content editing or copying.
OptionaltoolName: string
The tool name, for 'tool' actions.
True when no listener prevented the action.
Asks listeners of beforePermissionAction whether an annotation action may proceed; a listener calls preventDefault() to deny it.
'annotation'.
The annotation and the intent (select, fill, activate or edit).
True when no listener prevented the action.
Rotates the view 90 degrees clockwise. Does not change the document.
OptionalpageNumber: number
Page to rotate; all pages when omitted.
Rotates the view 90 degrees counterclockwise. Does not change the document.
OptionalpageNumber: number
Page to rotate; all pages when omitted.
The scroll container size changed (called automatically on window resize): recomputes the fit zoom and visible pages
Streaming search: returns a ReadableStream of only matches (resultCode FOUND, in page order), readable one by one with its reader, or all at once with getAll() (repeated calls give the same array). modeOptions is a SearchMode or an array (bitwise OR); searchOptions limits the page range (inclusive, 1-based). Like textSearchInit({ fullSearch: true }) it clears the previous results, fires searchInProgress, records results and highlights by mode; when canceled by clearSearchResults before finishing, the stream closes right away (getAll does not wait forever). An empty stream without a document
The text or regular expression to find.
OptionalmodeOptions: number | number[]
A SearchMode value or an array of them; 0 when omitted.
OptionalsearchOptions: { endPage?: number; startPage?: number }
Optional page range.
OptionalendPage?: numberLast page to search (1-based, inclusive).
OptionalstartPage?: numberFirst page to search (1-based, inclusive).
A stream of matches with an extra getAll() method.
const { documentViewer, Search } = instance.Core;
// All matches at once
const results = await documentViewer.search('total', Search.Mode.WHOLE_WORD).getAll();
console.log(`${results.length} matches`);
// Or one by one, limited to pages 1 to 5
const reader = documentViewer.search('total', 0, { startPage: 1, endPage: 5 }).getReader();
for (let r = await reader.read(); !r.done; r = await reader.read())
console.log(r.value.pageNumber, r.value.resultStr);
Selects the text between two points (page coordinates, with page numbers): each takes the nearest character, with the endpoint decided by the left / right half of the character; page text not loaded is loaded first
Start point in page coordinates, with its page number (1-based).
Page number (1-based) of the point.
End point in page coordinates, with its page number (1-based).
Page number (1-based) of the point.
Makes it the current result: switches to the current result color, goes to that page and scrolls the match box to the middle of the viewport (setActiveSearchResult scrolls); fires activeSearchResultChanged. To decide how to scroll yourself, use displaySearchResult(result, scrollFn)
A search result.
Import options for loading the document's annotations (our annotations are read directly from the Worker; only the value is stored)
The import options; a shallow copy is stored.
Small bookmark icon at the top-right of each page (click to add / remove this page's bookmark); hidden by default
True to show the icons, false to hide them.
Sets the function called when a bookmark is removed by clicking the bookmark icon.
Receives the page index (0-based).
Called when a bookmark is added by clicking the bookmark icon (argument is the page index)
Receives the page index (0-based). Falsy values are ignored.
In continuous modes scrolls the page's top edge to the top of the viewport; in non-continuous modes switches to the group containing the page
Page number (1-based); rounded and clamped to the page range. Does nothing without a document.
Optional_isSmoothScroll: boolean
Unused; kept for compatibility.
Intercepts loadDocument: the handler receives the source, the options and the default load function, and calls it after changing either.
The handler, or null to remove it.
Sets the background color of page containers, shown before a page is rendered.
A CSS color.
Set before loadDocument: when loading annotations, the XFDF it returns is used instead of the annotations stored in the PDF (for example when annotations are stored on a server)
Receives the document id and resolves to the XFDF to load; null to read annotations from the PDF again.
Changes the XFDF of the document's annotations before they load: transform(xfdf, callback, options), callback returns the changed XFDF
The transform function, or null to remove it.
Whether documents opened in this view read layers and render by layer (see Document.setLayersEnabled); documents opened later are set the same way
False to disable layers, true to enable them.
Page margin (CSS px), 20 by default: left between pages, above the first page, below the last page and on both sides of pages, the same in all display modes. Not scaled with zoom. Re-lays out immediately when set, and recomputes the zoom in fit modes
Margin in CSS pixels.
Sets the function that opens links from URI actions instead of the default.
Receives the address (https:// is added to invalid addresses) and whether to open a new window.
Sets the view rotation of several pages.
Page number (1-based) to rotation.
Changes the XFDF of annotations on inserted / merged pages before they are read (as above)
The transform function, or null to remove it.
Called when a page becomes visible (argument is the page number; called again when the same page leaves and comes back)
Receives the page number (1-based); null removes it.
Sets this page's own zoom (null removes it and follows the overall zoom again). The layout is redone and this page re-rendered
Page number (1-based). Throws a RangeError when out of range.
The zoom level (1 is 100%), or null to follow the overall zoom.
Does nothing
View rotation (does not change the document); without pageNumber, sets all pages and clears per-page settings
Quarter turns clockwise, as a PageRotation value from 0 to 3; other values are ignored.
OptionalpageNumber: number
Page number (1-based) to rotate; all pages when omitted.
Sets the scroll container of the viewer; scrolling and resizing it update the visible pages.
The scrollable element that contains the viewer element.
Highlight colors of results and the current result
The colors to change; omitted ones keep their current value.
OptionalactiveSearchResult?: stringCSS color of the active search result.
OptionalsearchResult?: stringCSS color of search result highlights.
How many pages one search pass processes (we give results page by page; only the value is stored)
Number of pages, rounded up; values not greater than 0 are ignored with a warning.
Sets the function that decides whether a submit-form action goes ahead.
Receives the address and an object whose submit() continues and cancel() cancels the submission.
Background color of selected text
A CSS color.
How far (screen pixels) the pointer may be from characters and still select them; must be positive
Distance in screen pixels; values not greater than 0 are ignored with a warning.
Switches the current tool: the old tool switchOut, the new tool switchIn, fires toolModeUpdated(new, old)
The tool to switch to, such as one from getTool. Nothing happens when it is already current or a beforePermissionAction listener prevents it.
An object (page index → text) replaces them all; an array (page indexes) bookmarks these pages (text '-' by default) and removes the rest. Fires userBookmarksChanged on change
An object mapping 0-based page indexes to text, or an array of 0-based page indexes.
Page containers flow in this element (see syncFlow); it is set to position: relative without padding (window coordinates use its top-left as origin) and sized by the layout
The element that holds the page containers.
View watermark: drawn on every page (not written to the file), carried over to documents opened later; null removes it
The watermark (diagonal, header, footer text or a custom draw function), or null to remove it.
Watermark render quality. Watermarks are drawn as vectors, so only the value is stored; throws when out of range
Optionalquality: number
A number greater than 0 and at most 10. Defaults to 1.
Snaps to the nearest point on the page's vector content (unrotated page coordinates, pt): mode is a SnapModes value or array (DEFAULT = endpoints + midpoints + intersections by default); combined modes take the nearest of endpoints / midpoints / intersections first, and points on lines only when there are none. Only within getSnapDefaultOptions().radiusThreshold (screen pixels); when found, carries mode and modeName (the SnapModes key name); returned unchanged when not found. Segments are read by the Worker from the page content stream itself (the engine's snap export is unusable)
Page number (1-based). Throws when no document is loaded.
Horizontal position in page coordinates.
Vertical position in page coordinates.
Optionalmode: number | number[]
A SnapModes value or an array of them; SnapModes.DEFAULT when omitted.
A Promise that resolves to the snapped point, or to the original point when nothing is in range.
Compares text page by page with the document in another viewer: a highlight annotation for text deleted / replaced in this one, and for text added / replaced in the other (those with the same custom data TextDiffID are the same difference); previous difference annotations on both sides are deleted first; fires compareAnnotationsLoaded when done
The viewer holding the other document. Both viewers need a loaded document; the comparison waits for their annotations to load.
Optionaloptions: SemanticDiffOptions
Optional beforeColor and afterColor of the highlights.
A Promise that resolves to the difference annotations on both sides and the number of differences.
Cancels rendering in progress for the page (the on-screen canvas stays)
Page number (1-based). Pages without a view are ignored.
Deletes the difference annotations of this comparison (both sides)
Before a SubmitForm action submits: given to the handler when set to decide submit() or cancel(), otherwise submitted directly
The submission address.
Optionalcapability: { reject: (reason?: unknown) => void; resolve: () => void }
Optional callbacks notified of the outcome.
Cancels the submission.
Continues the submission.
Search (run page by page in the background, results arriving in page order, reversed with SEARCH_UP):
The text or regular expression to find. An empty pattern only clears the previous results.
SearchMode bit flags, such as HIGHLIGHT, CASE_SENSITIVE, WHOLE_WORD, REGEX, SEARCH_UP and PAGE_STOP.
Optionaloptions: TextSearchOptions
fullSearch, the page range startPage / endPage (1-based, inclusive) and the callbacks onResult, onPageEnd, onDocumentEnd and onError.
const { documentViewer, Search } = instance.Core;
documentViewer.textSearchInit('invoice', Search.Mode.HIGHLIGHT | Search.Mode.AMBIENT_STRING, {
fullSearch: true,
onResult: result => console.log(result.pageNumber, result.resultStr, result.ambientStr),
onDocumentEnd: () => console.log('Search finished'),
});
A listener that throws does not affect the others; the error is reported through logger.error.
Optionalargs: ViewerEvents[K]Like trigger, but awaits the Promise returned by each listener in turn; a failing listener does not affect the others.
Optionalargs: ViewerEvents[K]Closes the document, removes all listeners and unbinds the DOM; loadDocument rejects afterwards
Recomputes visible pages for the current viewport and schedules rendering (arguments accepted for compatibility and ignored)
Optional_visiblePages: number[]
Unused; kept for compatibility.
Optional_currentPage: number
Unused; kept for compatibility.
Immediately (without waiting for the next frame) recomputes visible pages, fires events and schedules rendering
Switches to FitMode.Zoom; with x / y (window coordinates) scrolls there, otherwise keeps the page point at the viewport's top-left in place
The zoom level (1 is 100%).
Optionalx: number
Horizontal scroll target in window coordinates (pixels within the viewer element); used only together with y.
Optionaly: number
Vertical scroll target in window coordinates; used only together with x.
Zooms while keeping the page point at (offsetX, offsetY) of the viewport in place; switches to FitMode.Zoom.
The zoom level (1 is 100%).
Horizontal distance from the left edge of the viewport in CSS pixels.
Vertical distance from the top edge of the viewport in CSS pixels.
Static ReadonlyEventsNames of the events this class triggers.
ReadonlyACTIVE_SEARCH_RESULT_CHANGED: "activeSearchResultChanged"Name of the activeSearchResultChanged event (see ViewerEvents).
ReadonlyANNOTATIONS_LOADED: "annotationsLoaded"Name of the annotationsLoaded event (see ViewerEvents).
ReadonlyBEFORE_DOCUMENT_LOADED: "beforeDocumentLoaded"Name of the beforeDocumentLoaded event (see ViewerEvents).
ReadonlyBEFORE_PERMISSION_ACTION: "beforePermissionAction"Name of the beforePermissionAction event (see ViewerEvents).
ReadonlyBEGIN_RENDERING: "beginRendering"Name of the beginRendering event (see ViewerEvents).
ReadonlyCLICK: "click"Name of the click event (see ViewerEvents).
ReadonlyCOMPARE_ANNOTATIONS_LOADED: "compareAnnotationsLoaded"Name of the compareAnnotationsLoaded event (see ViewerEvents).
ReadonlyDBL_CLICK: "dblClick"Name of the dblClick event (see ViewerEvents).
ReadonlyDISPLAY_MODE_UPDATED: "displayModeUpdated"Name of the displayModeUpdated event (see ViewerEvents).
ReadonlyDISPLAY_PAGE_LOCATION: "displayPageLocation"Name of the displayPageLocation event (see ViewerEvents).
ReadonlyDOCUMENT_LOADED: "documentLoaded"Name of the documentLoaded event (see ViewerEvents).
ReadonlyDOCUMENT_UNLOADED: "documentUnloaded"Name of the documentUnloaded event (see ViewerEvents).
ReadonlyFINISHED_RENDERING: "finishedRendering"Name of the finishedRendering event (see ViewerEvents).
ReadonlyFIT_MODE_UPDATED: "fitModeUpdated"Name of the fitModeUpdated event (see ViewerEvents).
ReadonlyKEY_DOWN: "keyDown"Name of the keyDown event (see ViewerEvents).
ReadonlyKEY_UP: "keyUp"Name of the keyUp event (see ViewerEvents).
ReadonlyLONG_TAP: "longTap"Name of the longTap event (see ViewerEvents).
ReadonlyMOUSE_ENTER: "mouseEnter"Name of the mouseEnter event (see ViewerEvents).
ReadonlyMOUSE_LEAVE: "mouseLeave"Name of the mouseLeave event (see ViewerEvents).
ReadonlyMOUSE_LEFT_DOWN: "mouseLeftDown"Name of the mouseLeftDown event (see ViewerEvents).
ReadonlyMOUSE_LEFT_UP: "mouseLeftUp"Name of the mouseLeftUp event (see ViewerEvents).
ReadonlyMOUSE_MOVE: "mouseMove"Name of the mouseMove event (see ViewerEvents).
ReadonlyMOUSE_RIGHT_DOWN: "mouseRightDown"Name of the mouseRightDown event (see ViewerEvents).
ReadonlyMOUSE_RIGHT_UP: "mouseRightUp"Name of the mouseRightUp event (see ViewerEvents).
ReadonlyPAGE_COMPLETE: "pageComplete"Name of the pageComplete event (see ViewerEvents).
ReadonlyPAGE_NUMBER_UPDATED: "pageNumberUpdated"Name of the pageNumberUpdated event (see ViewerEvents).
ReadonlyPAGES_UPDATED: "pagesUpdated"Name of the pagesUpdated event (see ViewerEvents).
ReadonlyROTATION_UPDATED: "rotationUpdated"Name of the rotationUpdated event (see ViewerEvents).
ReadonlySEARCH_IN_PROGRESS: "searchInProgress"Name of the searchInProgress event (see ViewerEvents).
ReadonlySEARCH_RESULTS_CHANGED: "searchResultsChanged"Name of the searchResultsChanged event (see ViewerEvents).
ReadonlyTAP: "tap"Name of the tap event (see ViewerEvents).
ReadonlyTEXT_SELECTED: "textSelected"Name of the textSelected event (see ViewerEvents).
ReadonlyTOOL_MODE_UPDATED: "toolModeUpdated"Name of the toolModeUpdated event (see ViewerEvents).
ReadonlyTOOL_UPDATED: "toolUpdated"Name of the toolUpdated event (see ViewerEvents).
ReadonlyUSER_BOOKMARKS_CHANGED: "userBookmarksChanged"Name of the userBookmarksChanged event (see ViewerEvents).
ReadonlyVISIBLE_PAGES_CHANGED: "visiblePagesChanged"Name of the visiblePagesChanged event (see ViewerEvents).
ReadonlyZOOM_UPDATED: "zoomUpdated"Name of the zoomUpdated event (see ViewerEvents).
Static ReadonlyFitThe FitMode enum, for DocumentViewer.FitMode.FitWidth and the like.
Base class for objects that fire named events. Listener arguments are passed by position.