After upgrading the 4.4.1, we now get the error:
java.lang.RuntimeException: Get page pdf document null
io.legere.pdfiumandroid.PdfDocument.nativeLoadPage(Native Method)
io.legere.pdfiumandroid.PdfDocument.openPage(PdfDocument.kt:154)
io.legere.pdfiumandroid.PdfiumCore.renderPageBitmap(PdfiumCore.kt:505)
com.github.barteksc.pdfviewer.PdfFile.renderPageBitmap(PdfFile.java:301)
com.github.barteksc.pdfviewer.RenderingHandler.proceed(RenderingHandler.java:109)
com.github.barteksc.pdfviewer.RenderingHandler.handleMessage(RenderingHandler.java:66)
android.os.Handler.dispatchMessage(Handler.java:110)
android.os.Looper.loopOnce(Looper.java:273)
android.os.Looper.loop(Looper.java:363)
android.os.HandlerThread.run(HandlerThread.java:85)
Issue has been reported in react-native-pdf, wonday/react-native-pdf#830, where the solution is to use 4.0.2 of the package.
Could be simplest to upgrade to 5.0.0 https://github.com/zacharee/AndroidPdfViewer/blob/master/CHANGELOG.md#402 but note that react-native-pdf reverted their upgrade wonday/react-native-pdf@cee6d77 for some reason. Upgrading just the pdfiumandroid apparently fixes it: wonday/react-native-pdf#976 (comment)
After upgrading the 4.4.1, we now get the error:
java.lang.RuntimeException: Get page pdf document null
io.legere.pdfiumandroid.PdfDocument.nativeLoadPage(Native Method)
io.legere.pdfiumandroid.PdfDocument.openPage(PdfDocument.kt:154)
io.legere.pdfiumandroid.PdfiumCore.renderPageBitmap(PdfiumCore.kt:505)
com.github.barteksc.pdfviewer.PdfFile.renderPageBitmap(PdfFile.java:301)
com.github.barteksc.pdfviewer.RenderingHandler.proceed(RenderingHandler.java:109)
com.github.barteksc.pdfviewer.RenderingHandler.handleMessage(RenderingHandler.java:66)
android.os.Handler.dispatchMessage(Handler.java:110)
android.os.Looper.loopOnce(Looper.java:273)
android.os.Looper.loop(Looper.java:363)
android.os.HandlerThread.run(HandlerThread.java:85)
Issue has been reported in react-native-pdf, wonday/react-native-pdf#830, where the solution is to use 4.0.2 of the package.
Could be simplest to upgrade to 5.0.0 https://github.com/zacharee/AndroidPdfViewer/blob/master/CHANGELOG.md#402 but note that react-native-pdf reverted their upgrade wonday/react-native-pdf@cee6d77 for some reason. Upgrading just the pdfiumandroid apparently fixes it: wonday/react-native-pdf#976 (comment)