AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

com.github.barteksc.pdfviewer.PDFView issue

Open deepak786 opened this issue 5 years ago • 5 comments

PDF view is distorted. It displays some black boxes. I tried with both versions:

  1. implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1' and nightMode to false.
  2. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'

Device Details: Redmi Note 8 Pro Android 10

please check the attached screenshot Screen Shot 2020-10-21 at 1 31 36 PM

deepak786 avatar Oct 21 '20 08:10 deepak786

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"/>

AhmerAfzal1 avatar Oct 21 '20 08:10 AhmerAfzal1

could you please share the GitHub repo link?

deepak786 avatar Oct 21 '20 08:10 deepak786

I'm sorry for this

AhmerAfzal1 avatar Oct 21 '20 08:10 AhmerAfzal1

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.

mariushorvat avatar Jan 18 '21 22:01 mariushorvat

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

lcyper avatar Feb 15 '22 15:02 lcyper