diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.34k stars 1.13k forks source link

@react-pdf/renderer Images disappeared in Mac pdf reader but working in the window machine and browser reader #2667

Closed arsalan06 closed 3 months ago

arsalan06 commented 3 months ago

Capture1 Capture2

rbrahier17 commented 3 months ago

It might be related to this issue.

The workaround of overriding the @react-pdf/pdfkit version from this comment worked for me.

I observed that it fixed JPEG image display on macOS PDF reader, in Safari reader, and resolved the bug in Adobe Reader described in the issue.

arsalan06 commented 3 months ago

It might be related to this issue.

The workaround of overriding the @react-pdf/pdfkit version from this comment worked for me.

I observed that it fixed JPEG image display on macOS PDF reader, in Safari reader, and resolved the bug in Adobe Reader described in the issue.

It resolved the image disappear issue but added another now images get rotate

rbrahier17 commented 3 months ago

I can't help you more than this, i have run several tests, but haven't encountered this image rotation issue. By the way I'm using "@react-pdf/renderer": "3.1.12" and "@react-pdf/pdfkit": "3.1.2".

Maybe for now, you can try countering your rotation issue by applying transform:rotate styling to your Image.

If you can provide more detailed information about your context and use case it might help others find a solution.