What's new
Version 3.0
June 29, 2017 version 3.0.1
PDFNetJS Updates
June 9, 2017 version 3.0.0
Upgrade Notes
- Breaking changes:
- Now only a single AnnotationManager instance is created even when multiple documents are loaded. This means if you previously added AnnotationManager event handlers inside the documentLoaded event you should move them to the viewerLoaded event otherwise you'll receive an extra event for every new document you load.
- All old annotation popup behavior (notes that appeared directly on the document, NOT in the notes panel) has been removed
- The enableAnnotations option is now set to true by default. If you want annotations to be disabled you should explicitly set this to false.
- New strings:
- contextMenu.edit, contextMenu.strikeout, contextMenu.squiggly
- annotations.tooltips.stamp
- error.OfficeLoadError
- noMatchesFound
- mobile.enterPageNumber
Version 2.2
February 8, 2017 version 2.2.2
Upgrade Notes
WebViewer HTML5 updates
Setptember 6, 2016 version 2.2.1
Upgrade Notes
WebViewer HTML5 updates
April 11, 2016 version 2.2.0
Upgrade Notes
- Breaking change: to allow for more efficient rendering, the way DocumentViewer calls DisplayMode has changed. Those using custom display modes will need to change their code so that instead of directly extending DisplayMode they pass all their custom functions as an object to DisplayMode.setCustomFunctions, which will ensure backward compatibility of their custom layout code. See the horizontal viewer sample for an example.
- Potential breaking change: when incremental download is in operation, custom XFDF files that are loaded on the documentLoaded event may subsequently be deleted and replaced with annotations from the PDF file. This can be avoided by passing {useDownloader: false} to WebViewer, as is done in the Hide/Show annotations sample.
Version 2.1
November 12, 2015 version 2.1.0
Upgrade Notes
- Potential breaking change: AnnotationManager.getAnnotationsList will now include links and widgets in the list. To just see "listable" annotations you can filter by the Listable property. e.g. annotManager.getAnnotationsList().filter(function(annot) { return annot.Listable; })
Version 2.0
April 20, 2015 version 2.0.0
Upgrade Notes
- Breaking Change: To better match existing JavaScript style guidelines, all API functions now start with a lowercase letter.
Version 1.8
April 20, 2015 version 1.8.2
WebViewer HTML5 Updates
November 26, 2014 version 1.8.1
WebViewer HTML5 Updates
August 18, 2014 version 1.8.0
Upgrade Notes
- Breaking Change: The annotationChanged event now passes an array of annotations instead of a single annotation.
- Breaking Change: DocumentViewer.GetToolMode now returns the current tool mode instead of the instance of the current tool mode. Comparisons no longer have to be made with instanceof.
Version 1.7
March 24, 2014 version 1.7.1
WebViewer HTML5 Updates
December 23, 2013 version 1.7.0
Upgrade Notes
- Breaking change: All of the Set...Callback functions (e.g. SetPageCompletedCallback) on DocumentViewer and AnnotationManager have been replaced with events. So instead of docViewer.SetPageCompletedCallback(func(param1, param2)) change to docViewer.on('pageCompleted', func(event, param1, param2)). See the list of events under the event summary on DocumentViewer and AnnotationManager.
- Breaking change: Tool names have been updated to be more consistent. For example, instead of using docViewer.ToolModes.TextSelect use window.Tools.TextSelectTool. See the HTML5 documentation for more details.
- Breaking change: Highlight annotations now have a stroke color instead of a fill color.
- AnnotationManager.LoadAnnotations has been deprecated and should be replaced with the ImportAnnotations function.
- Textareas now update on the change event instead of the blur event to be consistent with other widgets.
- Transparent stroke colors are no longer selectable for annotations.
Version 1.6
October 8, 2013 version 1.6.1
WebViewer HTML5 Updates
September 11, 2013 version 1.6.0
Upgrade Notes
- If using the HTML5 ReaderControl directly then please note that the document parameters are now placed after the hash (#) instead of being part of the query string (?) by default. For the previous behavior you can pass false to ControlUtils.getQueryStringMap().
- The English translation file has been updated with three new translations for saving annotations (savingAnnotations, saveSuccess, saveError).
- AnnotationManager.SaveAnnotations() has been deprecated and should now be replaced with ExportAnnotations.
Version 1.5
June 26, 2013 version 1.5.0
Upgrade Notes
- HTML5 ReaderControl functions have been modified to be more consistent with the WebViewer function naming scheme. This may affect anyone that has made customizations to the HTML5 ReaderControls directly or through config files.
- Please refer to html5/WebViewerInterface.js for the function names and review your customizations to make sure that they are using the new naming scheme.
Version 1.4
April 17, 2013 version 1.4.2
WebViewer HTML5 Updates
February 26, 2013 version 1.4.1
WebViewer HTML5 Updates
February 12, 2013 version 1.4.0
WebViewer HTML5 Updates
Version 1.3
November 27, 2012 version 1.3.2
WebViewer HTML5 Updates
WebViewer Mobile Updates