Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
anandmainali5 opened this issue Jun 27, 2024 · 1 comment
Open
4 tasks done

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

anandmainali5 opened this issue Jun 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@anandmainali5
Copy link

anandmainali5 commented Jun 27, 2024

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

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

  • Browser (if applicable): Chrome, Brave
  • React-PDF version: v9.0.0
  • React version: ^17.0.2
@anandmainali5 anandmainali5 added the bug Something isn't working label Jun 27, 2024
@pcwa-ahendricks
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants