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