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
1
vote
1 answer

PDF load error in com.github.barteksc.pdfviewer

I'm using com.github.barteksc.pdfviewer library to view pdf files. I don't know what happened it stopped working from past 2 weeks, Im getting PDF load error. This is my PdfViewer.java class RetrievePdfStream extends AsyncTask
1
vote
0 answers

How to set app default for opening pdf in Android

I have build an PDF Reader and i want to open my app to open PDF's from any where on device Like:- Whatsapp or File Manager I want to set my app default for opening PDF's Help me please I'm searching it for past 3 hours
1
vote
3 answers

Google's PDF embed doesn't work on Android webview, any alternatives?

I would like to show a PDF in an application embedded in a WebView. It works fine until I would like to use get parameters in the URL. So for example this works…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
1
vote
1 answer

Android PDF from Assets folder

I want to open a pdf file from the assets folder by clicking a button. Tried the below code but it's not working. btn_help.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v)…
Malhotra
  • 221
  • 3
  • 13
1
vote
0 answers

How to download a PDF from a great library voghDev / PdfViewPager through a URL and then store within the app in Android using java?

1) I want to download the PDF using voghDev/PdfViewPager library through a URL. 2) The downloaded PDF should be stored in the users internal memory. I am able to directly view the pdf from the url but unable to actually download it. …
1
vote
4 answers

How to show a pdf file from storage using AndroidPdfViewer library?

I want to load a pdf file from external storage (Download/Pdfs/myfile.pdf) using AndroidPdfViewer but it shows blank screen without any error. I tried lots of ways but it's not working. public class PdfViewActivity2 extends AppCompatActivity { …
Gopal Meena
  • 407
  • 8
  • 20
1
vote
1 answer

How to initialise onDraw in Android via a button

In my project, users can view PDF documents and I want them to have the option to annotate each page in the document via onDraw and Paint. I would like the document to open for viewing first with the option to turn the drawing/painting function on…
1
vote
0 answers

Save a PDF file into a external directory

I am trying to save a PDF file to an external Storage Directory. I think I am missing something obvious, so perhaps we can solve this together. First I click my save button and check the directory exists. File direct = new…
C. Skjerdal
  • 2,750
  • 3
  • 25
  • 50
1
vote
0 answers

Set RTL scroll on AndroidPdfViewer

I use this lib https://github.com/barteksc/AndroidPdfViewer I want on horizontal scroll .scroll RTL because I read Arabic book I see this and it's not work Set RTL scroll direction for PDFView - Android I hope you will be help me
Billel Arfi
  • 73
  • 10
1
vote
1 answer

AndroidPdfViewer is not working in KitKat Version

I am Using this Library For AndroidPdfViewer https://github.com/barteksc/AndroidPdfViewer E/PDFView: load pdf error java.lang.NullPointerException at com.github.barteksc.pdfviewer.util.Util.toByteArray(Util.java:36) at…
1
vote
0 answers

Want to List PDF files from Download Folder. Getting Error

I want to list PDF files from Downloads folder, but I am getting error of null point while getting files. I am providing my code below. For displaying pdf file I am using com.github.barteksc:android-pdf-viewer:1.4.0' library. package…
Amit Mhaske
  • 471
  • 5
  • 10
1
vote
0 answers

Open Password Protected File With PdfRenderer

How can I read a password protected file using Android PdfRenderer? doc says: // create a new renderer PdfRenderer renderer = new PdfRenderer(getSeekableFileDescriptor()); // let us just render all pages final int pageCount =…
user2494863
  • 451
  • 7
  • 17
1
vote
1 answer

how to get pdf from internal storage in android Using WebView or AnyConcept

how to get pdf from internal storage in android Using WebView or AnyConcept. i have to get pdf in an activity from internal storage.Can anyone of u guys let me know about this .Thank You.
0
votes
0 answers

I have an auto scroll problem with PDFVIEW

> Autoscroll works but does not load the second page of the pdf it shows blank I want to bind the scrollHandle to the motion and speed of the seekbar which auto scrolls the screen down: This is a pdf library: public void Show_Full_Text() { …
0
votes
0 answers

I'm facing a problem with using pdfviewer library to handle links in the PDF

I want to handle links in my pdf but .linkHandler method is not working and giving me errors that it should be renamed but according to library, I'm using this correctly. Have a look at the code PDFView pdfView = findViewById(R.id.pdfView); …