PDF.js Express Core
New
Added new APIs to make Measurement annotations easier to change and use programmatically:
- annotations[0].Scale: Gets/sets the scale of the measurement annotation
- annotations[0].DisplayUnits : Gets/sets the units displayed on the measurement annotation
- annotations[0].DisplayFormat: Gets/sets how the measurement will be displayed (fraction, round, decimal, truncate)
- annotations[0].System: Gets/sets the system used in the measurement (metric, imperial, typographic)
Added enums to remove guesswork for units/systems/formats Examples
- instance.Core.Annotations.Annotation.MeasurementUnits.CM: will result in cm
- instance.Core.Annotations.Annotation.MeasurementSystems.METRIC: will result in Metric
- instance.Core.Annotations.Annotation.DisplayFormats.ROUND: will result in Round
Added API to enable arrow key navigation between pages DocumentViewer.enableArrowKeyNavigation
Added API to disable arrow key navigation between pages DocumentViewer.disableArrowKeyNavigation
Added support for annotation rollover appearances
Added a new event called annotationsDeselected
Improved comb spacing behaviour for TextWidgets
Added support for custom annotation rotation
Fixes
- Fixes long standing issue where zooming rapidly would cause the page to render at an incorrect size
- Fixed issue where an error was thrown when using setStyles and trying to set FontSize with a number instead of a string.
- Fixed issue where importing custom signatures would cause an error due to timing issues.
- Fixed an issue where text was selectable on a layer that was hidden
- Fixed issue when importing rotated FreeText with an angle that was a multiple of 45
PDF.js Express UI
New
- UI changes to the signature panel:
- Changed draw signature modal's buttons to disabled state if there is no input
- Changed type signature modal's buttons to disabled state if there is no input
- Changed upload signature modal's buttons to disabled state if there is no input
- Removed "sign here" on draw signature modal if there is input
- Added new option to filter comments based on the reply author
- Improved the overall experience of scrolling through thumbnails in the thumbnails panel
- By default notes will now be shown sorted by creation date, instead of by the date of the latest reply. This behaviour can be changed with the enableFeatures API
- The line measurement tools now support imperial marks with enableImperialMarks
Fixes
- Fixed issue where the checked SVG was not being applied on the refresh function for the checkbox widget when the value of the field was set to Off after the click event.
- Fixed issue where fields with a COMB property where not being printed with the correct spacing
- Fixed issue where files containing "%" could not be loaded into the viewer
- Fixed issue where text was not selectable in the notes panel
- Fixed an issue on small screen size, even if disabled the toolheader will always appear
- Various fixes to the thumbnail panel