wojtekmaj / react-pdf

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

We encountered a pdf that could not preview properly. #1528

Closed jilliss closed 1 year ago

jilliss commented 1 year ago

Before you start - checklist

Description

It should be noted that this file can be displayed normally through wps and word, as well as when I open it with edge.

This is the version I use.: "react-pdf": "^6.2.2",

This is the problem, pdf. bug.pdf

Steps to reproduce

Load this pdf page via base64, or url

Expected behavior

Pdf display normally

Actual behavior

Pdf display blank

Additional information

No response

Environment

wojtekmaj commented 1 year ago

You likely forgot about this:

https://github.com/wojtekmaj/react-pdf#support-for-non-latin-characters

Works well on the test page:

image