React PDF viewer v2.11.0 Release Notes

  • ๐Ÿ†• New features

    • โœ… The Button component has new testId property that is identical with the data-testid attribute
    • ๐Ÿ”Œ The Scroll Mode plugin provides new function to switch mode programmatically:
    const scrollModePluginInstance = scrollModePlugin();
    const { switchScrollMode } = scrollModePluginInstance;
    // Switch to Wrapped mode

    ๐Ÿ”Œ You might find it useful when using with the full screen plugin. The following sample code switches the scroll mode after entering the full screen mode:

    const defaultLayoutPluginInstance = defaultLayoutPlugin({
        toolbarPlugin: {
            fullScreenPlugin: {
                onEnterFullScreen: (zoom) => {
                onExitFullScreen: (zoom) => {

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ‘€ Cache pages' labels. So we won't see blink in the current page label when navigating between pages
    • Keep the file name when downloading a file opened from local
    • ๐Ÿšš It's possible to remove the sidebar created by the default layout plugin:
    const defaultLayoutPluginInstance = defaultLayoutPlugin({
        sidebarTabs: () => [],

    ๐Ÿ› Bug fixes

    • Can't use special characters such as (, ), [, ], * in the keyword
    • Downloading document doesn't work on iOS Safari and iOS Chrome
    • ๐Ÿ”Œ The Get File plugin doesn't work with a file which is opened with credentials
    • The highlight area aren't displayed
    • The selectedText prop of RenderHighlightContentProps isn't correct