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.

RemotePDFViewPager remotePDFViewPager = new RemotePDFViewPager(context, MyUrlContainingDownloadablePFDLink, this); remotePDFViewPager.setId(R.id.pdfViewPager);

The XML.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/remote_pdf_root"
    android:orientation="vertical"
    android:background="#FFFFFF"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <es.voghdev.pdfviewpager.library.PDFViewPager
        android:id="@+id/pdfViewPager"
        android:layout_width="match_parent"
        android:layout_height="480dp"/>


</LinearLayout>

By using the above code I can view the pdf from the link but cannot download it.

Link to the library on Github

How do I download it ?

0

There are 0 answers