react-pdf-viewer v2.8.0 Release Notes

  • ๐Ÿ†• New features

    • ๐Ÿ‘ Support RTL
    import { TextDirection, Viewer } from '@react-pdf-viewer/core';
    
    <Viewer
        theme={{
            direction: TextDirection.RightToLeft,
        }}
    />;
    
    • The RenderViewer type includes the theme context

    ๐Ÿ› Bug fixes

    • The highlighting elements should be shown below the text, so users can still select the text
    • ๐Ÿ‘ป There is an exception when opening a password protected document