1.2 release notes
We’re pleased to announce Nutrient Web SDK 1.2, which ships with numerous enhancements and improvements, with a particular focus on elevating the functionality of rich text annotations. This release represents a significant advancement of our text annotation capabilities, delivering a more reliable and intuitive experience. Refer to the changelog for full details.
Breaking API changes
The PSPDFKit.ViewState#enableAlwaysScrollToZoom
property is being deleted in favor of the more flexible ViewState.zoom
API. This change improves control over zoom behavior and aligns with our modern API design principles.
With this version, the property is removed completely and any code using it will stop working.
Before:
instance.setViewState((viewState) => viewState.set("enableAlwaysScrollToZoom", true) );
After:
// Always zoom on scroll wheel without requiring the Control key to be pressed. instance.setViewState( new PSPDFKit.ViewState({ zoom: { // Configure scroll wheel zoom behavior. wheelZoomMode: PSPDFKit.WheelZoomMode.ALWAYS // ... other zoom options } }) );
Rich text annotations: Major enhancements
This release delivers significant improvements to rich text annotations, making them more reliable, consistent, and user-friendly.
Key enhancements
-
Adds support for applying font size and font family to individual text segments, enabling more precise text styling.
-
Standardizes behavior between background color and font color selections, ensuring consistent functionality across all color options.
-
Synchronizes rich text properties with underlying annotation metadata when all text is selected, ensuring consistent display.
-
Improves text formatting (bold, italic, underline) to work reliably during typing without disrupting line breaks or causing text to become hidden.
-
Enhances color management to maintain focus when changing colors, with proper updating of color swatches and consistent color application.
-
Preserves formatting and prevents data loss in multi-line text annotations during editing, deletion, and focus changes.
-
Maintains styling and formatting when pasting rich text content, with proper placement of pasted text.
-
Ensures consistent resizing behavior across all handles while preserving an annotation’s size, formatting, and alignment.
-
Improves keyboard focus management and restoration in the toolbar for consistent behavior across browsers.
-
Enhances AP stream generation with proper preservation of newlines and text formatting for improved document compatibility.
These improvements provide a more seamless and predictable experience when working with rich text content. For a complete list of changes, bug fixes, and performance improvements, refer to the changelog. For previous release notes, refer to the Web SDK 1.1 release notes. We appreciate your feedback and contributions as we continue to enhance Nutrient Web SDK.