wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.
https://projects.wojtekmaj.pl/react-pdf
MIT License
8.97k stars 861 forks source link

Pdf flickering issue on page change after upgrading to v9.0 #1836

Open anandmainali5 opened 1 week ago

anandmainali5 commented 1 week ago

Before you start - checklist

Description

When changing pdf file page flickering occurs.. also, same file is fetched on each page change. and some black screen is shown in buttom of the page.

Here's the screenshot attached:

Screenshot 2024-06-27 at 11 20 08 AM

Steps to reproduce

Upload pdf file and try to change the page on pdf view. it'll show the flickering.

Expected behavior

Smooth pdf page change without black screen in bottom of screen.

Actual behavior

When changing pdf file page flickering occurs.. also, same file is fetched on each page change. and some black screen is shown in buttom of the page.

Its adding <canvas class="hiddenCanvasElement" lang="en"></canvas> code above the body closing tag.

Sometimes it adds <canvas class="hiddenCanvasElement" lang="en" height="0" width="0"></canvas> which doesn't show the black canvas.

Additional information

No response

Environment

pcwa-ahendricks commented 1 day ago

Seems like upgrading to 9.1 fixed this issue for me but I didn't explcitly see anything like this in the Release Notes..