Skip to main content

Documentation Index

Fetch the complete documentation index at: https://webviewer-docs.mupdf.com/llms.txt

Use this file to discover all available pages before exploring further.

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.
Object references
PAGE
ANNOTATION
Example webViewer.refs.scroll.type.PAGE

fit

Object references for the viewer sizing settings.

to

A sub-object of fit.
Object references
WIDTH
HEIGHT
PAGE
READ
Example webViewer.refs.fit.to.WIDTH

viewMode

Object references for the viewer mode setting.
Object references
SINGLE
DOUBLE
SINGLE_SCROLL
DOUBLE_SCROLL
EBOOK
Example webViewer.refs.viewMode.DOUBLE

degree

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

dialog

Object references for the dialog types.

type

A sub-object of dialog.
Object references
PRINT
SEARCH_TOOL
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.
Object references
ANNOTATION
ANNOTATION_PROPERTY
BOOKMARK
REDACTION
REDACTION_SEARCHING
TEXT_SEARCH
THUMBNAIL

close

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

theme

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

language

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

annotation

Object references for annotations.

tool

A sub-object of annotation.
Object references
BUTTON
CHECK_BUTTON
CIRCLE
CLOUD
COMBO_BOX
ERASER
HIGHLIGHT
INK
LINE
LINE_DIMENSION
LINK
LIST_BOX
POLYGON
POLYGON_DIMENSION
POLYLINE
POLYLINE_DIMENSION
RADIO_BUTTON
SIGNATURE
SQUARE
STAMP
STRIKE
TEXT_CALLOUT
TEXT_FIELD
TEXT_FREE
TEXT_POPUP
UNDERLINE
Example webViewer.refs.annotation.tool.STAMP

redaction

Object references for redactions.

textDataOption

A sub-object of redaction.
Object references
FULL
NONE
TEXT_ONLY
Example webViewer.refs.redaction.textDataOption.FULL

visibility

Object references for setting view visibility.

view

A sub-object of visibility.
Object referencesUI element
ANNOTATION_HIGHLIGHTHighlight annotation Icon
ANNOTATION_PROPERTY_PANELAnnotation Properties Panel
ANNOTATION_STAMPStamp annotation Icon
ANNOTATION_STRIKEStrikeout annotation Icon
ANNOTATION_TEXT_POPUPText Popup (Sticky Note) annotation Icon
ANNOTATION_UNDERLINEUnderline annotation Icon
ANNOTATION_UNDO_REDOUndo/Redo annotation Icon
CONTEXT_MENUContext Menu
CONTEXT_MENU_COPYCopy option in Context Menu
CONTEXT_MENU_HIGHLIGHTHighlight option in Context Menu
CONTEXT_MENU_SEARCHSearch option in Context Menu
CONTEXT_MENU_STRIKEOUTStrikeout option in Context Menu
CONTEXT_MENU_UNDERLINEUnderline option in Context Menu
FLOATING_NAVFloating Navigation
FLOATING_NAV_SEARCHFloating Navigation Search
INDICATORIndicator Bar
INDICATOR_PAGE_NUMBERPage Number in Indicator Bar
INDICATOR_SCALEScale in Indicator Bar
SIDE_VIEWSide View
SIDE_VIEW_ANNOTATIONAnnotation Side View
SIDE_VIEW_REDACTION_APPLYRedaction Apply Side View
SIDE_VIEW_BOOKMARKBookmark Side View
SIDE_VIEW_THUMBNAILThumbnail Side View
TOOLBARToolbar/Header
TOOLBAR_ANNOTATIONAnnotation Button in Toolbar/Header
TOOLBAR_DOWNLOADDownload Icon in Toolbar/Header
TOOLBAR_LEFTLeft Area of Toolbar/Header
TOOLBAR_PRINTPrint Icon in Toolbar/Header
TOOLBAR_REDACTIONRedaction Button in Toolbar/Header
TOOLBAR_RIGHTRight Area of Toolbar/Header
TOOLBAR_ROTATERotate Icon in Toolbar/Header
TOOLBAR_VIEW_MODEView Mode Icon in Toolbar/Header
TOOLBAR_ZOOMZoom Icon in Toolbar/Header
Example webViewer.refs.visibility.view.TOOLBAR

text

Object references for text settings.

align

A sub-object of text.
Object references
CENTER
LEFT
RIGHT
Example webViewer.refs.text.align.LEFT

icon

Object references for icons.
Object references
BIDIRECTIONAL_HORIZONTAL_ARROW
BOOKMARK
CALENDAR
CASE_SENSITIVE
CHECK_MARK
CIRCLE
CIRCLE_CHECK_MARK
CIRCLE_HORIZONTAL_3DOT
CLIP
COLLAPSE
COMMENT
COPY
CROSS
DOUBLE_DICE
DOWNLOAD
DOWN_CHEVRON
DOWN_CHEVRON2
DOWN_CHEVRON3
EDIT
ENTER_FULLSCREEN
EXIT_FULLSCREEN
EXPAND
FILLED_ROUND_SQUARE_CHECK_MARK
FILLED_STAMP
FIRST
FUNNEL
GEAR
GRID
HAND
HORIZONTAL_3DOT
HYPERLINK
IMAGE
INVISIBLE
LAST
LEFT_CHEVRON
LEFT_CHEVRON2
LEFT_CHEVRON3
LIST
LIST2
LOCKED
MAIL
MEDIA_FAST_FORWARD
MEDIA_NEXT
MEDIA_PAUSE
MEDIA_PLAY
MEDIA_PREVIOUS
MEDIA_REWIND
MEDIA_STOP
MEMO
MEMO2
MINUS
MONITOR
MP3_FILE
NEXT
NOTE
OCR_FILE
PAGE
PAGE_HEIGHT
PAGE_SEARCH
PAGE_WIDTH
PENCIL
PHONE
PLUS
POINTER
POLYGON
PREVIOUS
PRINT
REDO
REFRESH
RIGHT_CHEVRON
RIGHT_CHEVRON2
RIGHT_CHEVRON3
ROTATE_CLOCKWISE
ROTATE_COUNTER_CLOCKWISE
ROUND_SQUARE_CHECK_MARK
SAVE
SEARCH
SEND
SHARE
SIGN_OUT
SIGNATURE
SQUARE
SQUARE_CHECK_MARK
SQUARE_NEXT
SQUARE_PREVIOUS
STAMP
TEXT_BOX
TEXT_CURSOR
TEXT_HIGHLIGHT
TEXT_STRIKEOUT
TEXT_UNDERLINE
TRASH_CAN
TXT_FILE
TWO_WAY_HORIZONTAL_ARROW
TWO_WAY_VERTICAL_ARROW
UNDO
UNLOCKED
UP_CHEVRON
UP_CHEVRON2
UP_CHEVRON3
USER
VISIBLE
Example webViewer.refs.icon.REFRESH

event

Object references for the event types.

type

A sub-object of event.
Object references
ACTION_HISTORY_CHANGE
ANNOTATION_CREATE
ANNOTATION_MODIFY
ANNOTATION_REMOVE
ANNOTATION_SELECTION_CHANGE
ANNOTATION_TOOL_CHANGE
CURRENT_PAGE_INDEX_CHANGE
CURRENT_READING_PAGE_CHANGE
DOCUMENT_DOWNLOAD
KEYDOWN
KEYUP
MOUSEDOWN
MOUSEUP
POINTERDOWN
POINTERUP
REDACTION_CREATE
REDACTION_MODIFY
REDACTION_REMOVE
SCALE_CHANGE
SCROLL_POSITION_CHANGE
SIDE_VIEW_CLOSE
SIDE_VIEW_OPEN
TEXT_SEARCH_START
TEXT_SELECTION_CHANGE
Example webViewer.refs.event.type.KEYDOWN