Skip to content
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 file not fully 100% loaded... stops after 80-90% #843

Open
eminduyum opened this issue Jun 6, 2024 · 9 comments
Open

pdf file not fully 100% loaded... stops after 80-90% #843

eminduyum opened this issue Jun 6, 2024 · 9 comments

Comments

@eminduyum
Copy link

eminduyum commented Jun 6, 2024

"react": "18.2.0",
"react-native": "^0.74.2",
"react-native-pdf": "^6.7.5",
"react-native-blob-util": "^0.19.9",

Hello everyone...

pdf file loading stops at 93.47% or 86.56% or 96.48% etc... Not fully 100% loaded...
issue occurs on android platform... but not tested on ios, maybe on ios platform will be occur...


System:
OS: macOS 12.7.5
CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
Memory: 25.99 MB / 8.00 GB
Shell:
version: 5.8.1
path: /bin/zsh
Binaries:
Node:
version: 22.0.0
path: /usr/local/bin/node
Yarn: Not Found
npm:
version: 10.8.1
path: /usr/local/bin/npm
Watchman:
version: 2024.04.22.00
path: /usr/local/bin/watchman
Managers:
CocoaPods:
version: 1.11.3
path: /Users/eminduyum/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.2
- iOS 16.2
- macOS 13.1
- tvOS 16.1
- watchOS 9.1
Android SDK:
API Levels:
- "34"
Build Tools:
- 34.0.0
System Images:
- android-34 | Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11668458
Xcode:
version: 14.2/14C18
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/eminduyum/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.1
wanted: ^0.74.1
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: false

@eminduyum eminduyum changed the title pdf file not fully loaded 100%... stops after 80-90% pdf file not fully 100% loaded... stops after 80-90% Jun 6, 2024
@eminduyum
Copy link
Author

Please any suggestion...

@MAtif22SPP
Copy link

i also found the same issue but working fine for android version 8 and above.
why its not working for lower version, still i am searching for that.

@eminduyum
Copy link
Author

i also found the same issue but working fine for android version 8 and above. why its not working for lower version, still i am searching for that.

yes, that's right... working fine for android version 8 and above but not lower version. searching too...

@Abhishektaurus
Copy link

It's coming on higher versions as well sometimes, it goes into loading state forever

@kuldip-simform
Copy link

Same for me

@Logan-FE
Copy link

Logan-FE commented Aug 22, 2024

ios is same
is any fixed on this?

@kuldip-simform
Copy link

ios is same is any fixed on this?

           <Pdf
                trustAllCerts={globalMetrics.isIos}
                style={styles.pdfView}
                source={{ uri: url, cache: true }}
                onLoadComplete={() => {
                  setIsLoading(false);
                }}
                onError={() => {
                  setIsLoading(false);
                  setIsError(true);
                }}
                renderActivityIndicator={() => <LoaderView />}
              />

@Logan-FE This should work.
I had this issue but I added trustAllCerts={Platform.os === 'iOS'} and it started working for me.

@eminduyum
Copy link
Author

ios is same is any fixed on this?

           <Pdf
                trustAllCerts={globalMetrics.isIos}
                style={styles.pdfView}
                source={{ uri: url, cache: true }}
                onLoadComplete={() => {
                  setIsLoading(false);
                }}
                onError={() => {
                  setIsLoading(false);
                  setIsError(true);
                }}
                renderActivityIndicator={() => <LoaderView />}
              />

@Logan-FE This should work. I had this issue but I added trustAllCerts={Platform.os === 'iOS'} and it started working for me.

Thank you, I will try...

@alexandravychytill
Copy link

Hello
For me the loading indicator does not even show beyond 0.00% and shows after loading straight the pdf. Is there maybe anything I can do about that? So when I use onLoadProgess and print the Progress it also only says 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants