react-pdf
react-pdf copied to clipboard
ReactPDF.Image is not rendering some images
Describe the bug
ReactPDF.Image is not rendering some images like the below image. there's no console error.
I confirmed that ReactPDF.Image is rendering other jpeg files or png.
To Reproduce I've used ReactPDF like this.
<ReactPDF.Image
key={fileId}
source={{
uri: '/fae5c83b-431c-44e9-829d-004871a5f32f.jpeg',
headers: { Pragma: 'no-cache', 'Cache-Control': 'no-cache' },
method: 'GET',
body: undefined,
}}
style={style.image}
/>
Expected behavior
Desktop (please complete the following information):
- OS: MacOS, W
- Browser chrome
- React-pdf version 3.3.8
yes, i am also facing simillar issues
i tried downloading pdf from the playground
but when i try to open using my mac(preview) or iPhone, i am getting blank image
Desktop (please complete the following information):
OS: MacOS 14.0 Browser Brave React-pdf version 3.3.8
iPhone: browser safari React-pdf version 3.3.8
surprisingly second image from the playground renders perfectly
I am also facing the exact same problem!! Do you have any ideas or any possible fix? @diegomura @wojtekmaj
@KMJ-007 your problem will be fix by #2646, but not sure if it's the same problem as the one originally mentioned by this issue
not sure but might be the root of the issue https://github.com/diegomura/react-pdf/issues/2651#issuecomment-1957395769
@diegomura Still facing this weird issue. A few days ago I opened a issue similar to this one https://github.com/diegomura/react-pdf/issues/2651 and you actually closed my issue by providing a possible fix chore: bump jay-peg dep #2687 but the problem still persists with the latest version. Its happening for a long time so would you mind looking into it one more time please?
Sorry for not keeping in touch. I solved the problem when I updated @react-pdf/render from 3.1.9 to 3.4.2. Thank you for all committers.
Should I close this issue?