<< Click to Display Table of Contents >> Navigation: Gnostice Document Studio .NET > Migration > Version 2018 R2 |
The 2018 R2 release contains the following breaking changes in the client-side (JavaScript) API.
The following settings have been moved from the client-side (JavaScript) to server-side (C#). See the topic on server-side events for more details.
oPreferences.renderingDpi
oPreferences.printingDpi
oPreferences.digitizerSettings
oPreferences.interactiveElements.formFields.enableFormFilling
oPreferences.interactiveElements.annotations.enableAnnotations
oPreferences.userIndentity.name
The following settings have been renamed
oPreferences.securitySettings to Preferences.security
oPreferences.viewSettings to Preference.initialView
oPreferences.interactiveElements.formFields to Preferences.interactiveElements.form
The following APIs have been categorized and grouped to make it easy to find and use
oView API - available under DocumentViewer.View
▪refresh()
▪showNavigationPane()
▪hideNavigationPane()
▪zoom(zoomValue: ZoomMode)
▪zoomIn()
▪zoomOut()
▪fullScreen()
▪rotateClockwise()
▪rotateCounterClockwise()
▪rotatePages(rotationAngle: RotationAngle)
▪invertColors(applyInversion: boolean)
▪firstPage()
▪lastPage()
▪prevPage()
▪nextPage()
▪gotoPage(pageNumber: number)
▪changeLanguage(language: string, resourcePath: string = "")
oSearch API - available under DocumentViewer.Search
▪findNext(keyword: string, searchProgressCallback: any = null)
▪findPrevious(keyword: string, searchProgressCallback: any = null)
▪findFirst(keyword: string, searchProgressCallback: any = null)
▪findLast(keyword: string, searchProgressCallback: any = null)
oForms API - available under DocumentViewer.Forms
▪getAllFormFields()
▪getFormField(formFieldName: string)
▪submitForm(submitUrl: string, submitMethod: SubmitMethod = SubmitMethod.POST, includeNoValueFields: boolean = false,submitFields: Array<string> = null, isIncludeList: boolean = true)
▪resetForm(resetFields: Array<string> = null, isIncludeList: boolean = true)
▪focusForm()
▪addEventListener(eventName: string, formFieldSpec: string, eventHandler: any)