Blog Post

PSPDFKit 2.9 for React Native Adds Main Toolbar Customization

Erhard Brand

We’re excited to announce the release of PSPDFKit 2.9 for React Native. This release introduces the ability to add custom buttons to the main toolbar, persists the document viewer’s configuration options, and introduces an easier way to configure Measurement Tools.

Adding Custom Buttons to the Main Toolbar

Toolbar Customization

In addition to specifying which toolbar buttons should be visible to the user, you now also have the ability to add custom toolbar buttons to the main toolbar. This will allow you to place your own buttons alongside the PSPDFKit toolbar buttons and perform custom actions when they’re tapped. For more information, refer to the main toolbar customization guide.

Persisting PSPDFKitView Settings

Persist Settings

This release adds the ability to query the current document’s configuration options. The configuration can be reapplied to new PSPDFKitView instances to persist the settings, providing your customers with continuity when moving between documents. The configuration is returned as a PDFConfiguration object. You can find out more by reading the configuration guide.

Configuring Measurement Tools

Configure Measurement Tools

In this version, we’ve introduced an easier way to configure Measurement Tools. The new MeasurementValueConfiguration object forms part of the PDFConfiguration object passed in when creating a new PSPDFKitView component. It can also be set after the component has been created using the setMeasurementValueConfigurations API. The previously used setMeasurementScale and setMeasurementPrecision methods have been removed.

Enhancements and Bug Fixes for Native SDKs

This release also adds the ability to open password-protected PDF documents programmatically and includes other bug fixes and improvements, along with the latest updates from our native iOS and Android SDKs. For more information, please refer to the iOS and Android changelogs. If you’re currently using the Measurement Tools component, you’ll be required to perform some migration steps. Please refer to our React Native 2.9 migration guide for steps on how to migrate.

More

For a full list of changes included in PSPDFKit 2.9 for React Native, refer to our changelog.

Upgrade to PSPDFKit 2.9 for React Native now to take advantage of the latest updates and improvements. For a complete list of features, visit the React Native guides. If you’re interested in PSPDFKit for React Native, contact our Sales team. We’d love to hear about your use case and discuss how to best implement it.

Author
Erhard Brand Hybrids Engineer

Erhard is a mobile software engineer with a focus on iOS. He enjoys working in a fast-paced environment and is a solution-focused person. In his spare time, he enjoys spending time with his family and traveling.

Explore related topics

Related products

PSPDFKit for React Native

Product page Guides Example Projects

Share post
Free trial Ready to get started?
Free trial