React PDF viewer v2.9.2 Release Notes
-
🆕 New feature
- 🔌 Add new
trigger
option for the Highlight plugin
import { Trigger } from '@react-pdf-viewer/highlight'; const highlightPluginInstance = highlightPlugin({ trigger: Trigger.None, });
There are two possible values for the
trigger
option:Value Description 0️⃣ Trigger.TextSelection
(default)Trigger.None
Doesn't trigger the highlight. It is often used to render the highlight areas 👌 Improvements
- 🖨 Disable the printing functionality if the document doesn't allow to print
- Show the page labels if there are
🐛 Bug fixes
- 💻 Can't resize the sidebar when using with the Fluent UI library
- Fix the TypeScript definition of the
Cover
component - 🖨 Fix an edge case where there are extra empty pages when printing a document
- 🔌 Add new