AndroidPdfViewer
AndroidPdfViewer copied to clipboard
com.github.barteksc.pdfviewer.PDFView issue
PDF view is distorted. It displays some black boxes. I tried with both versions:
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'and nightMode to false.implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
Device Details: Redmi Note 8 Pro Android 10
please check the attached screenshot

Try this once
implementation 'io.github.ahmerafzal1:ahmer-pdfium:1.6.0'
implementation 'io.github.ahmerafzal1:ahmer-pdfviewer:1.5.0'
<com.ahmer.pdfviewer.PDFView
android:id="@+id/pdfView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
could you please share the GitHub repo link?
I'm sorry for this
Do you guys plan to fix this issue? as it happen on all my Android devices (Samsung, OnePlus, Google, Sony) Note that this is not an isolated issue.
i found this:
I found a workaround for this
<com.github.barteksc.pdfviewer.PDFView android:id="@+id/pdfView" android:forceDarkAllowed="false" android:layout_width="match_parent" android:layout_height="match_parent"/>by forcing the pdfview not to allow DarkMode. But it only works for Android 10. I haven't tested with the other android versions.
https://github.com/barteksc/AndroidPdfViewer/issues/914#issuecomment-661741608