-
-
Notifications
You must be signed in to change notification settings - Fork 906
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
PDF not rendering correctly for some devices #1351
Comments
It's a similar phenomenon. I wrote it with a very basic syntax, and it only breaks the PDF area on certain devices (the whole galaxy s21). I've checked all the issues, upgraded the version, checked the webpack settings, etc. but I couldn't solve it. It would be great to know the cause of the problem. My environment
|
HI, some users mention the same problem here. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days. |
This has been resolved in #1010 and released in v6.2.2. |
Before you start - checklist
Description
Working with a very basic
<Document file={{ url: decodedUrl, }} onContextMenu={e => e.preventDefault()} onLoadSuccess={onDocumentLoadSuccess} className="pdf-viewer-container" onPassword={handlePassword} > {Array.from(new Array(numPages), (el, index) => ( <div style={{ border: "1px solid black", marginBottom: "2vw" }}> <Page key={
page_${index + 1}} pageNumber={index + 1} width={pdfWidth} // pdfWidth = 800 /> </div> ))} </Document>
setup.Everything seems to be working perfectly on my device. but some users are reporting broken text, improper rendering of the text in the pdfs.
I am unsure as to what is causing the issue. Apologies for formatting of code.
Any help will be greatly appreciated
Attaching below images of error.
Steps to reproduce
I don't have any clue right now.
Expected behavior
The pdfs should render with proper formatting irrespective of device.
Actual behavior
pdfs not rendering properly.
Additional information
I cannot attach the file due to security and compliance reasons.
Environment
The text was updated successfully, but these errors were encountered: