react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

ReactPDF.Image is not rendering some images

Open stepanve opened this issue 1 year ago • 4 comments

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. 304757573-06cae53d-85f0-4c9c-9066-f7dc0e819894

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

stepanve avatar Feb 14 '24 14:02 stepanve

yes, i am also facing simillar issues

i tried downloading pdf from the playground

image

but when i try to open using my mac(preview) or iPhone, i am getting blank image

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

image

KMJ-007 avatar Feb 18 '24 11:02 KMJ-007

I am also facing the exact same problem!! Do you have any ideas or any possible fix? @diegomura @wojtekmaj

mubin86 avatar Feb 18 '24 11:02 mubin86

@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

ooga avatar Feb 19 '24 14:02 ooga

not sure but might be the root of the issue https://github.com/diegomura/react-pdf/issues/2651#issuecomment-1957395769

dmitryTurov avatar Feb 21 '24 17:02 dmitryTurov

@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?

mubin86 avatar Apr 04 '24 10:04 mubin86

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?

stepanve avatar Apr 05 '24 06:04 stepanve