Skip to content

Properties plugin

The properties plugin provides a button to list the properties of the PDF document.

Install

> npm install '@sse-ui/pdf-properties';

OR

> yarn add '@sse-ui/pdf-properties';

The properties plugin is included in the toolbar and default-layout plugins

Usage

1. Import the plugin

javascript
import { propertiesPlugin } from "@sse-ui/pdf-properties";

// Import styles
import "@sse-ui/pdf-properties/lib/styles/index.css";

2. Create the plugin instance

javascript
const propertiesPluginInstance = propertiesPlugin();

The plugin instance propertiesPluginInstance provides the following properties:

PROPERTYTYPEDESCRIPTIONFROM
ShowPropertiesReactElementCustomizable button to list the properties1.0.0
ShowPropertiesButtonReactElementThe default button to list the properties1.0.0
ShowPropertiesMenuItemReactElementThe default menu item to list the properties1.0.0

3. Register the plugin

Register the properties plugin instance:

javascript
<Viewer plugins={[propertiesPluginInstance]} />

Released under the MIT License.