We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The pdf is not rendering properly in React Native Webview. The text seems to be overlapping. It renders properly in web.
{Array.from(new Array(numPages), (_el, index) => ( <Page key={`page_${index + 1}`} pageNumber={index + 1} width={window.innerWidth} scale={1} /> ))}
<WebView source={{ uri: ${your_ip}/${path_to_pdf} }} />
To render properly without text overlapping
Text are overalpping
No response
The text was updated successfully, but these errors were encountered:
same issue!
Sorry, something went wrong.
Hi there, is it possible to handle this issue? @wojtekmaj
@RondipB @wojtekmaj Hello, I tried to reproduce this issue. But the text is not overlapping. Could you please check that it still has an issue?
<Document file="sample.pdf" onLoadSuccess={onDocumentLoadSuccess}> {Array.from(new Array(numPages), (_el, index) => ( <Page key={`page_${index + 1}`} pageNumber={index + 1} width={window.innerWidth} scale={1} renderTextLayer={false} /> ))} </Document>
"react": "18.1.0", "react-dom": "18.1.0", "react-pdf": "9.1.0",
<WebView key={webkey} source={{ uri: "http://34.22.66.247:3000/" }} javaScriptEnabled onLoadEnd={() => { if (!ready) { setWebkey(Date.now()); setReady(true); } }} scalesPageToFit={true} />
"react-native-webview": "^13.12.2"
Here's sample URI: http://34.22.66.247:3000/
Sure, will check and update here. Thanks
No branches or pull requests
Before you start - checklist
Description
The pdf is not rendering properly in React Native Webview. The text seems to be overlapping. It renders properly in web.
Steps to reproduce
`<Document
file={file}
onLoadSuccess={onDocumentLoadSuccess}
options={options}
loading={}
error={}
<WebView source={{ uri: ${your_ip}/${path_to_pdf} }} />
Expected behavior
To render properly without text overlapping
Actual behavior
Text are overalpping
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: