Is there a way to open a pdf with expo not using Ejecting?
You could use PDF.js in a WebView or you could polyfill the renderer underneath it to render with Expo.GLView
.
If I could import pdfjs on my app⌠having some troubles with zlib
I want to show a pdf from file-storage (without detaching).
With PDFjs itâs not possible due to zlib. @nikki, how can i do it with GLView ?
I found a way using WebBrowser, on iOS you have a direct PDF reader and on android just prefix your PDF url with this: âhttps://drive.google.com/viewerng/viewer?embedded=true&url={your pdf url}â
Hi,
Another solution I working on to display PDF with pdf.js and in a WebView:
Will this work with files saved locally using expoâs FileSystem ?
Yes it is
I get âfile props is requiredâ alert:
<PdfReader file={this.props.uri} />
this.props.uri contains this value: âfile:///Users/âŚ/pdfs/25.pdfâ.
Any ideas?
Thanks for making this, can you tell me what Iâm doing wrong? Iâm also happy to dig in and help troubleshoot
Hi @jogillesp,
Sorry I changed the API: https://github.com/xcarpentier/rn-pdf-reader-js#props
And add a check when uri include âfileâ.
Hi x
I am trying to make use of the a file in assets, is this possible and what would be the syntax for this. So far I am getting an alert saying âsource props is not correctâ.
Thanks in advance.
Jiffa
Hi @thejiff,
Sorry about that, can you please create an issue or maybe a PR ?
https://github.com/xcarpentier/rn-pdf-reader-js
Best regards,
it is not working on expo v31
Hi, should be fixed in latest lib version v0.2.1!
@xcarpentier just tested out, it works just fine with the last Expo (no errors)âŚthank you so much!
but its too slow
Am having the same problem with the rendering process it is too slow