1.0 release notes
RSSWe’re pleased to announce Nutrient Web SDK 1.0, formerly known as PSPDFKit for Web. Alongside our rebranding, we adopted a new versioning scheme: (<major>.<minor>.<patch>). This release resets our version number to 1.0.0.
This scheme doesn’t follow semantic versioning strictly, and minor releases can include breaking changes. Refer to the versioning policy for details.
The legacy pspdfkit npm package is now deprecated. Switch to the new @nutrient-sdk/viewer package by updating your application’s package.json file:
npm uninstall pspdfkitnpm install @nutrient-sdk/viewerBeyond the renaming, 1.0.0 ships with numerous fixes, performance enhancements, and UI improvements. Refer to the changelog for full details.
Below, we highlight important changes you may need to address when upgrading, including several API updates and deprecations.
Breaking API changes
We deprecated the NutrientViewer.ViewState#enableAlwaysScrollToZoom property in favor of the more flexible ViewState.zoom API. This improves zoom behavior control and aligns with our modern API design.
Current behavior
Existing implementations using enableAlwaysScrollToZoom will continue to work in 1.0.0 but will log warnings in the console.
Future behavior
Web SDK 1.2 removed enableAlwaysScrollToZoom. Update any code that references it to use the new zoom API.
Before:
instance.setViewState((viewState) => viewState.set("enableAlwaysScrollToZoom", true),);After:
instance.setViewState((viewState) => viewState.set("zoom", { // Configure scroll wheel zoom behavior. wheelZoomMode: NutrientViewer.WheelZoomMode.ALWAYS, // ... other zoom options. }),);UI updates
This release introduces a major update to the Web SDK’s user interface, with the following UI sections migrated:
- Link annotation toolbar
- Image and signature annotation (image) toolbar
- Stamp annotation toolbar
- Text highlight and markup annotation toolbar
- Content editor toolbar
- Form creator toolbar
- Ink eraser toolbar
- Note annotation toolbar
- Redaction toolbar
- Shape annotation toolbars
- Document crop toolbar
Most customizations will continue to work as before. If you used CSS classes or CSS variables for customization and notice anything unexpected, our Baseline UI migration guide offers helpful tips and guidance.
Toolbars UI migration
Annotation toolbars have undergone a significant overhaul to improve accessibility and customization capabilities. The overhaul uses our in-house Baseline UI design system. These changes bring the toolbars in line with the updated look of other UI components, such as the sidebar and main toolbar. They also improve support for users’ accessibility requirements.
Text Comparison API changes
This release updates the Text Comparison API to ensure consistency with documentation and to unify data handling.
TextBlock.rectsrenamed toTextBlock.rectPrevious behavior:
TextBlock.rectswas documented, but no rects were returned. Impact: UseTextBlock.rectinstead ofTextBlock.rects.TextBlock.rectcoordinates format updatedPrevious behavior: Coordinates were returned using a PDF coordinate system. Impact: If your application relied on PDF-style coordinates, update your logic to accommodate the new
x,y,width,heightformat.Operation.originalTextBlocksandOperation.changedTextBlocksreturn arraysPrevious behavior: Only one
TextBlockobject was documented to be returned. Impact: These now return an array ofTextBlockobjects. Make sure your code handles multiple items.PageComparisonResult.originalPageIndexandPageComparisonResult.changedPageIndexare optionalPrevious behavior: These properties were always present. Impact: Your code should now handle the possibility that these values may be undefined — particularly when comparing documents with differing page counts.
Signing document hashes via DWS Processor API and Document Engine
This release adds a new signing API. It enables direct hash signing with Document Engine and DWS Processor API when Web SDK operates client-side in the browser. To sign, pass an access token to the signDocument method. Learn more in our guides on how to sign via DWS Processor API and how to sign via Document Engine.
Attachments sidebar and preview
This release adds a new attachments sidebar. It displays a list of all files embedded in a PDF. Users can preview these files directly in the viewer or download them if the file format is unsupported. Previewing files is unavailable when using Document Engine. In that case, users can only download files.
Document Engine 1.5.6 or later is compatible with this release. See the Web SDK and Document Engine compatibility requirements.
For a complete list of changes, bug fixes, and performance improvements, refer to the changelog. For the previous release notes, see Web SDK 2024.7 release notes. We appreciate your feedback and contributions as we continue to enhance Nutrient Web SDK.