You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, some users encounter the following error when opening the pdf files
Used library version: 1.0.14
Function used to open pdf file:
suspend fun renderFile(pdf: File): List<PdfPage> {
val parcelFileDescriptor = ParcelFileDescriptor.open(pdf, ParcelFileDescriptor.MODE_READ_ONLY)
val pdfDocument = pdfiumCore.newDocument(parcelFileDescriptor)
return renderPdf(pdfDocument).also {
pdfPages.addAll(it)
}
}
Error detail:
java.lang.UnsatisfiedLinkError: No implementation found for long io.legere.pdfiumandroid.PdfiumCore.nativeOpenDocument(int, java.lang.String) (tried Java_io_legere_pdfiumandroid_PdfiumCore_nativeOpenDocument and Java_io_legere_pdfiumandroid_PdfiumCore_nativeOpenDocument__ILjava_lang_String_2) - is the library loaded, e.g. System.loadLibrary?
at io.legere.pdfiumandroid.PdfiumCore.nativeOpenDocument(SourceFile)
at io.legere.pdfiumandroid.PdfiumCore.newDocument(SourceFile:57)
at io.legere.pdfiumandroid.PdfiumCore.newDocument(SourceFile:45)
at io.legere.pdfiumandroid.suspend.PdfiumCoreKt$newDocument$2.invokeSuspend(SourceFile:26)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:33)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:108)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(SourceFile:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(SourceFile:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:684)
The text was updated successfully, but these errors were encountered:
1.0.14 is rather old. Do you see on the latest? That looks like a race condition on loading the native libraries, but I reworked it recently so everything will wait until the native libraries are loaded.
Hello, some users encounter the following error when opening the pdf files
Used library version:
1.0.14
Function used to open pdf file:
Error detail:
The text was updated successfully, but these errors were encountered: