PDF.js viewer JSON options: reference

WT PDF.js - Documentation

Types and values apply to the 6.4.299 viewers.

Option types and values for PDF.js 6.4.299

Types and values apply to the 6.4.299 viewers. Numeric defaultZoomValue is still a string; theme and mode options are numbers.

OptionTypeValuesPurpose
defaultZoomValuestring"auto", "page-width", "page-fit", "page-height", "125"Initial zoom; the string "125" means 125%.
viewerCssThemenumber0 / 1 / 20 OS theme, 1 light, 2 dark.
viewOnLoadnumber0 / 10 previous PDF view, 1 initial settings.
sidebarViewOnLoadnumber-1 / 0 / 1 / 2 / 3 / 4-1 unspecified, 0 hidden, 1 thumbnails, 2 outline, 3 attachments, 4 layers.
scrollModeOnLoadnumber-1 / 0 / 1 / 2 / 3-1 unspecified, 0 vertical, 1 horizontal, 2 wrapped, 3 page-by-page.
spreadModeOnLoadnumber-1 / 0 / 1 / 2-1 unspecified, 0 no spreads, 1 odd-page spreads, 2 even-page spreads.
cursorToolOnLoadnumber0 / 1 / 20 selection, 1 hand, 2 zoom tool.
localePropertiesobject{"lang":"ru"}A locale shipped with the viewer; use en-US for English.
externalLinkTargetnumber0 / 1 / 2 / 3 / 40 default, 1 current window, 2 new window, 3 parent, 4 top-level. Embedded viewers may replace 0 with 4.
enableScriptingbooleantrue / falseEmbedded PDF scripting.
disableRangebooleanfalse / truefalse permits Range; true disables it.
disableStreambooleanfalse / truetrue disables streaming.
disableAutoFetchbooleanfalse / trueUse true with disableStream=true to disable automatic prefetch.
enableXfabooleantrue / falseXFA support.
printResolutionnumber150Print DPI; higher values use more memory.
maxCanvasPixelsnumber33554432Canvas pixel limit; not a total memory limit.

WebTolk Joomla Extensions

113 Extensions
12 Categories
582 Versions released
893721 Downloads