Some test text!
Web / Guides / Migrating to v10
There are a few breaking changes and other deprecated APIs when migrating to v10 from older versions.
Starting with WebViewer 10, WebViewer will no longer support IE11. If you still need IE11 while transitioning to a modern browser, then please download WebViewer version 8.12 or below.
Starting with WebViewer 10, the Apryse SDK version will be synchronized with the WebViewer version. This means that the Apryse SDK version will be the same as the WebViewer version. For example, WebViewer 10 will use Apryse SDK 10.
The Core
object is now the entrypoint for the Annotations
, PDFNet
, Actions
, utils
, and Tools
namespace.
Example:
instance.Core.Annotations
instance.Core.Tools
instance.Core.PDFNet
instance.Core.utils
instance.Core.Actions
If you are using a custom UI, these would be accessed via the window object: Example:
window.Core.Annotations
...
To access the annotationManager
and documentViewer
objects from the instance you must also use the Core
namespace. Note the name change as well for both:
So the following:
instance.annotManager
instance.docViewer
Should now be:
instance.Core.annotationManager
instance.Core.documentViewer
XfdfUtils
has been renamed XFDFUtils
in the Annotation
namespace.
Example of new usage:
Core.Annotations.XFDFUtils
removeEventListener no longer allows removing an event listener globally. Instead, when calling this API you must specify the function that will be removed for the event listener. If a function is not passed, then you must specify a namespace with the event name. The namespace should match the one you used when adding the event listener. Examples:
Core.ContentEdit.removeEventListener('textContentUpdated', fn);
Core.ContentEdit.removeEventListener('textContentUpdated.namespace');
Previously deprecated APIs that have been removed:
Document.loadCanvasAsync
has been removed, please use Document.loadCanvasDocument.loadThumbnailAsync
has been removed, please use Document.loadThumbnailDocument.setOfflineModeEnabled
has been removed, please use Document.enableOfflineMode and Document.disableOfflineModeDocument.documentCompletePromise
has been removed, please use Document.getDocumentCompletePromiseDocumentViewer.loadAsync
has been removed please use DocumentViewer.loadDocumentDocumentViewer.setEnableAutomaticLinking
has been removed, please use DocumentViewer.enableAutomaticLinking and DocumentViewer.disableAutomaticLinkingDoumentViewer.setLoadAnnotationsFromVisiblePages
has been removed, please use DocumentViewer.enableLoadingAnnotationsFromVisiblePages and DocumentViewer.disableLoadingAnnotationsFromVisiblePagesDocumentViewer.setOptions
has been removed, please use DocumentViewer.enableAnnotations and DocumentViewer.disableAnnotationsDocumentViewer.getZoom
has been removed, please use DocumentViewer.getZoomLevelDocumentViewer.setEnableStylusMode
has been removed, please use DocumentViewer.enableStylusMode and DocumentViewer.disableStylusModeDocumentViewer.getRightToLeftPages
has been removed, please use DocumentViewer.isRightToLeftPageRenderingEnabledDocumentViewer.setRightToLeftPages
has been removed, please use DocumentViewer.enableRightToLeftPageRendering and DocumentViewer.disableRightToLeftPageRenderingDocumentViewer.setViewportRenderMode
has been removed, please use DocumentViewer.enableViewportRenderMode and DocumentViewer.disableViewportRenderModeDocumentViewer.enableGrayscaleAnnotations
has been removed, please use DocumentViewer.enableGrayscaleAnnotationsModeDocumentViewer.disableGrayscaleAnnotations
has been removed, please use DocumentViewer.disableGrayscaleAnnotationsModeBookmark.getHpos
has been removed, please use Bookmark.getHorizontalPositionBookmark.getVPos
has been removed, please use Bookmark.getVerticalPositionAnnotation.setRotationControlEnabled
has been replaced with Annotation.setRotationControlEnabled.enableRotationControl and Annotation.setRotationControlEnabled.disableRotationControlAnnotations.Forms.Field.setVisible
has been replaced with Annotations.Forms.Field.show and Annotations.Forms.Field.hideAnnotations.LineAnnotation.getCenterLeaderPoint
has been replaced with Core.Annotations.LineAnnotation.getLeaderLineControlHandlePointAnnotations.PopupAnnotation.setOpen
has been replaced with Annotations.PopupAnnotation.open and Annotations.PopupAnnotation.closeXfdfUtils.toXmlDate
has been replaced with XFDFUtils.toXmlDateXfdfUtils.serializePoint
has been replaced with XFDFUtils.serializePointXfdfUtils.deserializePoint
has been replaced with XFDFUtils.deserializePointXfdfUtils.serializePointArray
has been replaced with XFDFUtils.serializePointArrayXfdfUtils.deserializePointArray
has been replaced with XFDFUtils.deserializePointArrayXfdfUtils.serializeRect
has been replaced with XFDFUtils.serializeRectXfdfUtils.deserializeRect
has been replaced with XFDFUtils.deserializeRectXfdfUtils.serializeFringeRect
has been replaced with XFDFUtils.serializeFringeRectXfdfUtils.deserializeFringeRect
has been replaced with XFDFUtils.deserializeFringeRectXfdfUtils.serializeMeasure
has been replaced with XFDFUtils.serializeMeasureXfdfUtils.deserializeMeasure
has been replaced with XFDFUtils.deserializeMeasureXfdfUtils.parseDefaultAppearance
has been replaced with XFDFUtils.parseDefaultAppearanceAnnotationManager.getIsAdminUser
has been replaced with AnnotationManager.isUserAdminAnnotationManager.setIsAdminUser
has been replaced with AnnotationManager.promoteUserToAdmin and AnnotationManager.demoteUserFromAdminAnnotationManager.getReadOnly
has been replaced with AnnotationManager.isReadOnlyModeEnabledAnnotationManager.setReadOnly
has been replaced with AnnotationManager.enableReadOnlyMode and AnnotationManager.disableReadOnlyModeAnnotationManager.isFreeformRotationEnabled
has been replaced with AnnotationManager.getRotationOptionsAnnotationManager.setFreeformRotationEnabled
has been replaced with AnnotationManager.setRotationOptionsAnnotationManager.enableFreeformRotation
has been replaced with AnnotationManager.setRotationOptionsAnnotationManager.disableFreeformRotation
has been replaced with AnnotationManager.setRotationOptionsAnnotationManager.useFreeTextEditing
has been replaced with AnnotationManager.isFreeTextEditingEnabledAnnotationManager.setRedrawThrottle
has been replaced with AnnotationManager.setRedrawThrottleRateAnnotationManager.exportAnnotCommand
has been replaced with AnnotationManager.exportAnnotationCommandAnnotationManager.importAnnotCommand
has been replaced with AnnotationManager.importAnnotationCommandTools.AnnotationSelectTool.setEnableImmediateActionOnAnnotationSelection
has been replaced with AnnotationSelectTool.enableImmediateActionOnAnnotationSelection and AnnotationSelectTool.disableImmediateActionOnAnnotationSelectionTools.CalloutCreateTool.setEnableAutoSized
has been replaced with CalloutCreateTool.enableAutoSizedTextBox and CalloutCreateTool.disableAutoSizedTextBoxTools.DistanceMeasurementCreateTool.setEnableLeaderLines
has been replaced with DistanceMeasurementCreateTool.setLeaderLineDefaultOptionsTools.DistanceMeasurementCreateTool.enableLeaderLines
has been replaced with DistanceMeasurementCreateTool.setLeaderLineDefaultOptionsTools.DistanceMeasurementCreateTool.disableLeaderLines
has been replaced with DistanceMeasurementCreateTool.setLeaderLineDefaultOptionsTools.PolylineCreateTool.setAllowCreationOverAnnotation
has been replaced with PolylineCreateTool.enableCreationOverAnnotation and PolylineCreateTool.disableCreationOverAnnotationTools.RedactionCreateTool.setEnableTextAutoSize
has been replaced with RedactionCreateTool.enableAutoSizedText and RedactionCreateTool.disableAutoSizedTextTools.StickyCreateTool.setAllowCreationOverAnnotation
has been replaced with StickyCreateTool.enableCreationOverAnnotation and StickyCreateTool.disableCreationOverAnnotationTools.StickyCreateTool.setSaveViewState
has been replaced with StickyCreateTool.enableViewStateSaving and StickyCreateTool.disableViewStateSavingCore.office2PDFBuffer
has been replaced with Core.officeToPDFBufferCore.EventHandler.on
has been replaced with Core.EventHandler.addEventListenerCore.EventHandler.off
has been replaced with Core.EventHandler.removeEventListenerCore.EventHandler.one
has been replaced with Core.EventHandler.addEventListener with { once: true }
Core.setIsWindowsApp
has been replaced with Core.setAsWindowsApp and Core.unsetAsWindowsAppUI.setCustomModal
has been replaced with UI.addCustomModalfinishedSavingPDF
has been replaced with fileDownloadedUI.getIsHighContrastMode
has been replaced with UI.isHighContrastModeEnabledinstance.isMobileDevice
has been removedUI.setHighContrastMode
has been replaced with UI.enableHighContrastMode and UI.disableHighContrastModeUI.showErrorMessage
has been replaced with UI.displayErrorMessageUI.toggleElement
has been replaced with UI.toggleElementVisibilityUI.getSelectedThumbnailPageNumbers
has been replaced with UI.ThumbnailsPanel.getSelectedPageNumbersUI.selectThumbnailPages
has been replaced with UI.ThumbnailsPanel.selectPagesUI.unselectThumbnailPages
has been replaced with UI.ThumbnailsPanel.unselectPagesUI.updateOutlines
has been replaced with UI.reloadOutlineUI.useNativeScroll
has been replaced with UI.enableNativeScrolling and UI.disableNativeScrollingUI.setSortNotesBy
has been replaced with UI.setNotesPanelSortStrategyTrial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales