ViewerOptions constructor
viewer options object.
Used by form submission and for theme urls.
Indicates if the viewer should look for a compressed version of the CMap file with the extension '.bin'.
The URI to a folder where the external font CMap tables are stored.
Origin coordinates for the PDF page. The option is used for a properties panel of the Annotation and Form editor.
Set this options to true if you wish to disable page labels.
URL to document list service used by DocumentListPanel (see addDocumentListPanel method). The service should return JSON string with available documents array, e.g.: ["pdf1.pdf", "pdf2.pdf"]
The externalLinkTarget option sets the value of the target attribute of a link annotation. The externalLinkTarget option specifies where to open the linked document. Possible values are: 'blank', 'self', 'parent', 'top', 'none'.
Specifies the PDF file name, URL, or binary data to be loaded in the Viewer.
Used when file name not available.
Specifies annotation types which will be hidden when 'hide-annotations' button is checked. Possible values are: ['Text', 'Link', 'FreeText', 'Line', 'Square', 'Circle', 'Polygon', 'Polyline', 'Ink', 'Popup', 'FileAttachment', 'Sound', 'ThreadBead', 'RadioButton', 'Checkbox', 'PushButton', 'Choice', 'TextWidget', 'Redact'] or 'All' or 'None'
Set this option to true if you want to use the fileData property even if the document cannot be parsed as a valid PDF document.
User interface language.
This function will be called when context menu is about to be hidden. Return false if you want to prevent close context menu action.
This function will be called when context menu is about to be shown. You can use this function to customize context menu. Return false if you want to prevent open context menu action.
A predefined password for protected pdf documents.
Render interactive form elements.
PDF document renderer type - canvas or svg.
The Snap Alignment feature customization settings. The tolerance setting is the distance between the edges of two objects within which the object that is being moved or resized snaps to the other object. Margin is the extra space before or after the edge of a field or page. The margin setting is the distance from the target object to which the edge of the object being moved or resized snaps. The center setting allows to snap objects to centers of other objects (in addition to edges).
URL to an external Web API service which will be used to enable PDF editing features.
Use this option to change default viewer theme.
Available viewer themes.
By default, the viewer uses its own context menu. Set this option to true if you want to use the browser context menu. Please, note, if you set this option to true, some functions of the context menu will not be available (for example, actions of the Editor and Reply tool).
Arbitrary data associated with the viewer. This data is sent to the server when the document is saved.
Author's user name. The option is used by Annotation Editor as default value for 'author' field.
URL to the Web Worker script. The Web Worker script runs in the background and is used to load and render PDF documents in a parallel background thread. Please, note, that rendering a PDF on the main thread (without a Web Worker script) can slow down the performance of the PDF viewer when loading large PDF files.
Text selection cursor settings.
Contains default values for new annotations and fields.
Track view changes and restore previous state on next page load. Note for trackFile - we are tracking opened file only when you open document using URI, not binary data.
Keyboard shortcuts
Color settings for highlighting text and for active / inactive highlighting.
Zoom by mouse wheel settings.
GcDocs PDF Viewer options class.