com.github.barteksc.pdfviewer.PDFView issue

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
AhmerAfzal1commented, Oct 21, 2020

I’m sorry for this

0reactions
lcypercommented, Feb 15, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not find com.github.barteksc:android-pdf-viewer:2.8.2.
Android view for displaying PDFs rendered with PdfiumAndroid - could not find com.github.barteksc:android-pdf-viewer:2.8.2. · Issue #1067 ...
Read more >
Issues · barteksc/AndroidPdfViewer - GitHub
Android view for displaying PDFs rendered with PdfiumAndroid - Issues · barteksc/AndroidPdfViewer.
Read more >
PdfView not displaying. · Issue #874 - GitHub
Hello, my pdfView is not displaying. I use com.github.barteksc:android-pdf-viewer:3.2.0-beta version. Here is my code pdfFile is gotten from ...
Read more >
Failed to resolve: com.github.barteksc:android-pdf-viewer:2.6.1
When i adding compile inside my Gradle like: compile 'com.github.barteksc:android-pdf-viewer:2.6.1' Android Studio threw this error "Failed ...
Read more >
Error inflating class com.github.barteksc.pdfviewer.ScrollBar
ScrollBar error while running app and app crashes. Please help am using com.github.barteksc:android-pdf-viewer:2.8.2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found