Skip to main content
MuPDF WebViewer has a reference list for typical objects you will need to access and have control over. To access the keys for these objects use the webViewer.refs object.

webViewer.refs

scroll

Object references for the scroll settings.

type

A sub-object of scroll. Example webViewer.refs.scroll.type.PAGE

fit

Object references for the viewer sizing settings.

to

A sub-object of fit. Example webViewer.refs.fit.to.WIDTH

viewMode

Object references for the viewer mode setting. Example webViewer.refs.viewMode.DOUBLE

degree

Object references for the viewer rotation. Example webViewer.refs.degree.DEG_90

dialog

Object references for the dialog types.

type

A sub-object of dialog. Example webViewer.refs.dialog.type.PRINT

panel

Object references for the panel types. You can open a specific panel type or close the left or right panel.

open

A sub-object of panel.

close

A sub-object of panel. Example webViewer.refs.panel.open.BOOKMARK webViewer.refs.panel.close.LEFT

theme

Object references for the viewer theme. Example webViewer.refs.theme.DARK_MODE

language

Object references for the viewer language. Example webViewer.refs.language.ENGLISH

annotation

Object references for annotations.

tool

A sub-object of annotation. Example webViewer.refs.annotation.tool.STAMP

redaction

Object references for redactions.

textDataOption

A sub-object of redaction. Example webViewer.refs.redaction.textDataOption.FULL

visibility

Object references for setting view visibility.

view

A sub-object of visibility. Example webViewer.refs.visibility.view.TOOLBAR

text

Object references for text settings.

align

A sub-object of text. Example webViewer.refs.text.align.LEFT

icon

Object references for icons. Example webViewer.refs.icon.REFRESH

event

Object references for the event types.

type

A sub-object of event. Example webViewer.refs.event.type.KEYDOWN