7.1.0 (Sept 22, 2020) is a huge release with many new features and bugfixes!
New core features
- Added the ability to rotate point based annotations (line, polyline, polgyon and freehand). A new rotation control point will appear when selecting these types of annotations. It can be disabled with the annotation.setRotationControlEnabled API.
- Added a function on tools to immediately allow dragging of annotations on mouse down (without first selecting the annotation).
- Added the ability to copy an annotation by holding alt while clicking and dragging a selected annotation
- Added annotManager.bringToFront and annotManager.bringToBack to have the particular annotation be drawn on top or underneath of all other annotations
- Added Annotations.setCustomDrawHandler to more easily customize the drawing of annotations without modifying the prototype
- Added Annotations.setCustomSerializeHandler and Annotations.setCustomDeserializeHandler to more easily customize the serialization of annotations without modifying the prototype
- Improved the performance of loading documents with many (ten thousand or more) pages
- Added fieldManager.updateFieldName which allows you to update the name of a field
- Added width and height options to loadCanvasAsync which can be used instead of the zoom option to determine the output canvas size
- Added the setEnableAutoSized function on the CalloutCreateTool to allow Callout annotations to automatically resize. The auto size width can also be controlled from the CalloutCreateTool defaults
- Added annotManager.deselectAnnotations which can deselect multiple annotations at once
- Added docViewer.getPageSearchResults which returns the search results currently found by DocumentViewer
- Added the searchResultsChanged event that is fired when the search results are updated
- Added the getStartStyle, setStartStyle, getEndStyle and setEndStyle APIs on polyline annotations
- Update FreeText autosizing so that it is maintained even after reloading the document
- Increased the default font size for FreeText and Callout annotations
- Updated lodash dependency to the latest version
Core bugfixes
- Fixed issue where overlapping measurement annotations would have missing data
- Fixed issue where signature widget in read only mode was still clickable
- Fixed issue where embedded JS print function wasn't triggered properly
- Fixed issue where file attachments imported without NoZoom wouldn't display in the correct location
- Fixed issue where double clicking a freetext annotation where there is text underneath would select the text instead
- Fixed issue where annotations weren't flagged as modified when changing the Id, PageNumber or Author
- Fixed issue where CoreControls.Search.WHOLE_WORD was not set correctly
- Fixed issue where the renderRect option in loadCanvasAsync wasn't working properly
- Fixed issue where the eraser tool wasn't always able to erase sticky annotations
- Fixed issue where the crop tool was updating the AnnotationHistoryManager stack
- Fixed issue where the AnnotationHistoryManager stack wasn't being cleared when loading a new document
- Fixed issue where certain formats didn't work with the form field date picker
- Fixed issue where FreeText annotations were not editable after rotating pages
- Fixed issues with ellipse measurements not being updated in all cases
- Fixed issue where signature annotations were becoming associated with signature widgets on a different page in some cases
New UI features
- Added a line connecting the comment in the notes panel with the annotation on the page when the annotation is selected.
- Added handler for the embedded JavaScript print API
- Added setPrintedNoteDateFormat which sets the format for displaying the date when a note is printed
- Added a
notesInLeftPanel
option to the WebViewer constructor which moves the notes panel from the right side to the left - Added a
selectAnnotationOnCreation
option to the WebViewer constructor which automatically selects annotations when they are created - Added print quality option in the print modal to allow printing at high quality
- Added the printInBackground API which allows you to triggering printing without opening the print modal
- Added new sort and filter options for notes
- Improved translations for several languages
UI bugfixes
- Fixed issue where the menu overlay closes when hovering over text
- Fixed issue where password modal does not close when error modal appears
- Fixed issue where properties of buttons in the menu overlay couldn't be customized
- Fixed issue where tall modals were not scrollable on small screens
- Fixed missing data elements for buttons in menu overlay
- Fixed issue where notes could be overlapping
- Fixed issue with stroke thickness for signatures
- Fixed issue where note state was not disabled in readonly mode
- Fixed various styling issue