Release notes
Learn about the changes, additions, and fixes in the PDF Viewer SDK.
Version 5
Version 5.1.0
Added
- The PDF Viewer SDK can now navigate you to the selected search result.
- The save button behavior can now be overriden to initiate custom actions. Review the following code sample that can be used within your project:
el.api().toolbar.button.overrideBehaviour(
el,
'pdftools-icon-button-save',
() => {
el.api().document.save(el, { saveOriginal: true });
}
);
Changed
- Previously, when you opened a corrupt PDF, the PDF Viewer SDK auto-repair feature tried to fix the corrupted file. As a consequence, fixing the file could invalidate some digital signatures. With this update, you can disable the auto-repair with a boolean to prevent unwanted modifications of the original documents. The following code sample displays the exact variable:
pdfWebViewer.api().document.open({
uri: '../pdf/WebViewer_Demo.pdf',
autoRepairDisabled: true,
});
Fixed
- PDF Viewer SDK Licensing is now pointing to the correct endpoint.
- Before this update, there was a race condition when initializing the PDF Viewer SDK with the Angular framework. With this update, the issue was fixed.
- Under certain circumstances, the PDF Viewer SDK could capture events outside of the canvas. As of this update, the underlying issue has been fixed, and the canvas size is the only space where you can capture events.
- The API references and their generation process have been updated.
Version 5.0.0
Added
-
The PDF Viewer SDK architecture was rewritten entirely. As a result, the SDK now consists of two packages:
- PDF Web Viewer: An SDK that lets you implement PDF viewer capabilities with search.
- PDF Web SDK: The functionality required by the PDF Web Viewer and additional features that let you completely customize the SDK.
It's recommended that you try the PDF Web Viewer first. The PDF Web Viewer lets you customize some functionalities. If you have specific requirements, you can implement your own PDF viewer using the PDF Web SDK. Implementing the PDF Web SDK lets you create a customized viewer from scratch but requires more development effort than the full PDF Viewer SDK.
-
The PDF Web Viewer is now working on both desktop and mobile.
-
Only the free Viewer-only version is available.
Previous versions
While the PDF Viewer SDK version 5 introduces new and improved functionality, it is also incompatible with implementations of the PDF Viewer SDK version 4. Hence this page provides release notes for version 5.0.0 and above. For previous release notes, refer to the version 4 release notes.