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

Some PDFs not rendering correctly on Chrome 92 and up #819

Closed
mashaod opened this issue Jul 28, 2021 · 9 comments · Fixed by #818
Closed

Some PDFs not rendering correctly on Chrome 92 and up #819

mashaod opened this issue Jul 28, 2021 · 9 comments · Fixed by #818
Assignees
Labels
bug Something isn't working

Comments

@mashaod
Copy link

mashaod commented Jul 28, 2021

Yesterday we updated Chrome to 92.0.4515.107 and found a broken file in our pdf viewer. We checked it again with the older Chrome version and everything is ok. It happens with a specific pdf file (I attached it below).

There are screens from our pdf viewer.

  1. How it should look.
    image

  2. How it actually looks.
    image

Steps to reproduce the behavior:

Expected behavior:

  • Render all content correctly

Environment

  • Browser: Chrome Version 92.0.4515.107
  • React-PDF version: 5.2.0 / 5.4.0 / 5.3.2
  • React version: 16.14.0
  • Webpack version: 4.46.0
@wojtekmaj
Copy link
Owner

wojtekmaj commented Jul 28, 2021

Confirmed fixed by #818.

Please try v5.4.0-beta.2.

@wojtekmaj wojtekmaj added the bug Something isn't working label Jul 28, 2021
@wojtekmaj wojtekmaj self-assigned this Jul 28, 2021
@wojtekmaj wojtekmaj changed the title React-pdf doesn't work with some files and new Chrome Version 92.0.4515.107 Some PDFs not rendering correctly on Chrome 92 and up Jul 28, 2021
@wojtekmaj wojtekmaj pinned this issue Jul 28, 2021
@mashaod
Copy link
Author

mashaod commented Jul 28, 2021

@wojtekmaj I have the same issue with v5.4.0-beta.2. Sorry, but this fix doesn't work for my case.

@wojtekmaj wojtekmaj reopened this Jul 28, 2021
@mashaod
Copy link
Author

mashaod commented Jul 30, 2021

@wojtekmaj I created a small example for you with a similar issue in another file.

https://codesandbox.io/s/react-pdf-with-crome-92-ybvzv

I upload two identical files with different pdf versions.
In the first case react-pdf viewer doesn't render some fields.
If you try to open the files in a browser, they will be correct.

@AgnesFrancis
Copy link

@mashaod : Can you please confirm if the issue is fixed with react-pdf version v5.4.0-beta.2 , as I am also facing the same issue.

@mashaod
Copy link
Author

mashaod commented Aug 2, 2021

@AgnesFrancis You could check this issue example https://codesandbox.io/s/react-pdf-with-crome-92-ybvzv with v5.4.0-beta.2. This version doesn't help in my case. I guess the problem is in the file parameters.

@sorodrigo
Copy link

@mashaod we fixed the issue by removing the webpack worker syntax and going back to the standard setup.

@ObaidaAlhaasan
Copy link

@mashaod I had the same issue and by using version 5.3.2 it worked and the docs were rendered correctly, give it a try if you still have the issue

@mashaod
Copy link
Author

mashaod commented Sep 1, 2021

Thanks a lot. I fixed the issue with a new version of react-pdf.

@wojtekmaj
Copy link
Owner

Closed in v5.4.0-beta.3

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

Successfully merging a pull request may close this issue.

5 participants