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 iOS phones display a white screen of PDF #1674
Comments
I faced the same issue, any thoughts about it? |
Potential duplicate of #1149? |
I have a similar issue with usage on the iPhone 13 mini. I get just a white screen with the correct dimensions but without visible content. (The console output is clear, without any errors or warnings, so not sure that this is the duplicate of #1149) React-PDF version:7.1.2 On iPhones with larger screens or Androids, works great. |
I have a similar problem. I use react-pdf in my project. While it works smoothly on Android devices, the project does not open directly on iOS devices and a white screen appears. This problem occurs especially in iOS 17.x.x. I cant specify a specific phone model, but this problem is mostly experienced with new model iOS phones. Interestingly, this is not the case every time; another user using the same phone model and the same iOS version can view the PDF. Environment: |
Please check #1149 and also check for any errors in callbacks React-PDF offers. |
Thanks for the quick response :) |
I managed to fix this by just adding
|
My page component is here. I can't use devicePixelRatio, maybe because I'm using react-pdf 5.7.2. Actually, when I click on the checkbox in the project, I open my PDFs in a pop-up. But the white screen is taken while the project is being rendered. I can't even see the checkbox. |
@melisaltunal Looks like I just solved it easily. try changing the "renderMode" to svg in the Document. Works on version 5.7.2 and 6.2.2 |
@focusaway SVG render mode is deprecated, and will be removed in a future version. |
Before you start - checklist
Description
Here's a snippet:
import { Document, Page } from 'react-pdf';
import { pdfjs } from 'react-pdf';
export default function() {
}
Steps to reproduce
On iOS 17.1.1, the white screen is displayed and there is no error, how can I solve this situation?
Expected behavior
Display PDF normally
Actual behavior
Now it's a white screen
Additional information
src: https://m.ximalaya.com/gatekeeper/xmkp-ort-h5/xikePreviewPdf?pdfSrc=http://fdfs.xmcdn.com/storages/9e45-audiofreehighqps/47/09/GKwRIDoJKNaaABAAAAJ9HidT.pdf&lessonName=L11%20Is%20this%20your%20shirt?&businessType=11
Environment
The text was updated successfully, but these errors were encountered: