Questions tagged [androidpdfviewer]

Android Pdf Viewer Library created by @barteksc available on GitHub.

Library for displaying PDF documents on Android, with animations, gestures, zoom and double tap support. It is based on PdfiumAndroid for decoding PDF files. Works on API 11 (Android 3.0) and higher. Licensed under Apache License 2.0.

82 questions
0
votes
1 answer

(Kotlin, viewBinding) java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Thread.isAlive()' on a null object reference

im following tutorial in youtube to create searchview use kotlin. What can be the possible solution? The code of activity doesn't show any error in the android studio but on running it shows an error. im getting error at runtime…
Rahman
  • 11
0
votes
0 answers

Annotate text in pdf

I am trying to edit an existing pdf in my Android App by adding text. For displaying a pdf I am using this PdfViewer library. Here in this library I see one option enableAnnotationRendering which takes boolean value. No matter whatever value true…
Sumit Shukla
  • 4,116
  • 5
  • 38
  • 57
0
votes
1 answer

simple_pdf_viewer crashes on api level 30 [Flutter]

App crashes while trying to open pdf in flutter. I have used "simple_pdf_viewer: ^0.2.2". I have attached the details of the crash report below : Library link : simple_pdf_viewer . Caused by: java.lang.IllegalStateException: Expected Android API…
0
votes
0 answers

Showing a PDF with its URL using Web View

I have a URL for my PDF and I want to show it in browser . I was using Intent but the PDF was download not Viewed , so I searched for this thing and I fount that , I can use this link before my PDF's URL…
Ahmed Elsayed
  • 231
  • 3
  • 23
0
votes
1 answer

Android Failed to Show PDF using AssetManager

I want to open a PDF from the assets folder from my activity button action and I used the below codes but nothing happens. public class AssetsProvider extends ContentProvider { @Override public AssetFileDescriptor openAssetFile(Uri uri,…
0
votes
1 answer

Convert binary content of pdf file in android (kotlin)

I am getting a response from the server which starts from %PDF-1.7. I believe that it is a base64 string(correct if I am wrong). Now while decoding the data using kotlin I am getting an error.What I want to achieve is I want to parse the response…
Chinmaay
  • 153
  • 1
  • 2
  • 10
0
votes
0 answers

PDF fetched form the device's internal storage is not visible when using barteksc / AndroidPdfViewer library in android

I can assure the in my phone I have a pdf file named "adobe.pdf" at /storage/emulated/0/Documents/adobe.pdf I downloaded the pdf through a URL link and the stored in Documents. Here is how I downloaded it and stored it. This is another activity…
Randy Orton
  • 33
  • 1
  • 7
0
votes
1 answer

How can I use PDFViewer to open a pdf within Webview in Android

I have been trying to create an Android app that will open a website in WebView. For Example, I would like to open Google.com and navigate to a file that is a pdf. I want to be able to open the pdf within the app instead of downloading it and…
0
votes
1 answer

How to open the exact same page of my Pdf file in my history fragment?

I am developing a Pdf reader android app in Android studio but I dont know how do I open the exact same page of my Pdf file in History Fragment. I have used Viewpager2 which contains three separate tabs(Document,History,Favourites) for my…
0
votes
0 answers

How to store some text of a pdf file after double tapping it on android studio?

I am creating a pdf reading app? When a user double taps a text in a pdf file, I want to store that text and perform some operations. I spent a whole day googling things, etc but I don't seem to find any relevant source to do this. I am currently…
perpetualdarkness
  • 135
  • 1
  • 4
  • 18
0
votes
1 answer

How to open a document on an alert dialog using PDFView on the app without using Intents

I have a document in the Firebase storage. I want to open that document and display it using an alert dialog and a PDFView from the pdf-viewer:2.8.2 library. This doesen't work when the setPositiveButton is clicked. Any ideas on what I might be…
0
votes
1 answer

Why does Dialog not show PDFView?

I want to show a PDF in a custom Dialog. I fetch PDF from a service as a ByteArray. I pass the ByteArray to PDFView object and then inflate the Dialog. All the views in the dialog are visible except the pdfview. Here is my activity code: val…
0
votes
0 answers

How can I download pdf generated by Tcpdf from my android webview

Need a help to solve my problem. In my android webview a pdf which is generated using tcpdf is not working properly ... It generates some garbage values in the pdf //download file myWebView.setDownloadListener(new DownloadListener()…
0
votes
1 answer

Detect end of page and disable scrolling in AndroidPdfViewer

I use https://github.com/barteksc/AndroidPdfViewer I need to detect end of page, disable scrolling and make some validates. How i can do it?
Evgeny GooDi
  • 159
  • 2
  • 3
  • 12
0
votes
0 answers

Trying to render a pdf in android app using php and barteksc pdf viewer dependency,the path of pdf is stored in mysql

## This is the pdfActivity which receives the URL of pdf and displays it in pdf viewer## public class PDFActivity extends AppCompatActivity implements OnLoadCompleteListener, OnPageChangeListener,OnPageErrorListener { private static…
chanyeol
  • 1
  • 2