Comments (14)
Show some code, there is nothing useful in this stacktrace
from androidpdfviewer.
pdfView.fromFile(pdfFile)
.defaultPage(DEFAULT_PAGE)
.showMinimap(false)
.enableSwipe(true)
.onLoad(nbPages -> LogUtils.debug(TAG, "onLoad PDF"))
.onPageChange((page, pageCount) -> LogUtils.debug(TAG, "onPageChange PDF"))
.onError(throwable -> LogUtils.error(TAG, "Error in opening PDF", throwable))
.load();
from androidpdfviewer.
Does pdfFile exist (by using pdfFile.exists()
)?
from androidpdfviewer.
Yes, absolutely i defense the code before passed it
from androidpdfviewer.
What is the path of file? Internal memory, physical SD card?
from androidpdfviewer.
The root is Environment.getExternalStorageDirectory();
This error happened intermittently.
from androidpdfviewer.
It must be issue in native lib, I'll take a look at it yesterday, but it looks strange
from androidpdfviewer.
Okay thank you
from androidpdfviewer.
Hi, same error here :
`D/jniPdfium: Init FPDF library
D/ConnectivityReceiver: Internet Connected
D/AbsListView: unregisterIRListener() is called
D/jniPdfium: File Size: 295
D/jniPdfium: Destroy FPDF library
E/jniPdfium: Error loading document from file map
E/jniPdfium: Last Error: 3
E/com.shockwave.pdfium.PdfiumCore: Open document failed
D/v_gal: [tid=26645] gralloc_register_buffer: ===>Width = 480, Height = 800,
E/PDFView: load pdf error
com.shockwave.pdfium.PdfOpenException: Open document failed
at com.shockwave.pdfium.PdfiumCore.newDocument(PdfiumCore.java:72)
at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:61)
at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:32)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)`
Looks like getNumFd() catched an IllegalAccessException and returned -1
from androidpdfviewer.
@jayDLabs You got Pdfium error 3, it means that PDF is corrupted or some other unknown error occurred. Check if you can open this file in another reader
from androidpdfviewer.
Exact, the PDF is corrupted, something went wrong when downloading it on my side, my bad.
Thank you !
from androidpdfviewer.
@elsennov please check if version 1.1.0 fixes this issue
from androidpdfviewer.
@barteksc ok
from androidpdfviewer.
Seems it has been solved in 1.1.0. No crash occurred! Thanks @barteksc
from androidpdfviewer.
Related Issues (20)
- VivoY72.gitignore
- 无法显示pdf中的签名信息 HOT 1
- Blank space before PDF HOT 1
- autoScrolly
- AndroidPdfViewer with Supporting Android API >=21 HOT 1
- Duplicate conflict 'lib/arm64-v8a/libc++_shared.so' with OpenCV lib
- .
- PDF page half portion shown blur on many pdfs.
- Unable to go till end of page if autoSpacing set to true
- Cant' compile after adding library Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
- Future of the project HOT 15
- Primer proyecto
- 使用PdfViewer加载本地Pdf文件预览时,pdf文件中的内容会出现拉伸 HOT 2
- ❗Repo not found or no token provided HOT 2
- facing issue in going to specific page in search in pdf in kotline andriod studio
- UnsatisfiedLinkError with PDFium on Android 15 Emulator with 16 KB Page Size
- ViewPager2 中包裹了PDFView控件,当PDFView控件中加载pdf进行垂直方向滑动时,滑动卡顿,请问有解决办法吗,谢谢
- In a ViewPager2, a PDFView control is wrapped. When scrolling vertically within the PDFView while loading a PDF, the scrolling is jerky. Do you have any solutions for this issue? Thank you.
- Need help resolving a Null Pointer Exception,at com.github.barteksc.pdfviewer.PDFView.loadComplete (PDFView.java:756)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidpdfviewer.