Loading...

Android PDF Viewer Ep.01 : GridView - Load,Read,Zoom,Swipe,Scroll

Android PDF Viewer Ep.01 : GridView - Load,Read,Zoom,Swipe,Scroll
SOURCE CODE EREFRENCE : http://camposha.info/source/gridview-pdf-listrenderpagezoom/

Browse SOURCE CODE of this and other tutorial : http://camposha.info 

SOURCE REPO :  http://camposha.info
SUPPORT SITE : http://camposha.info
FB Page : https://web.facebook.com/oclemmy/


DESCRIPTION

Long time no see.Nowadays at programmingwizards we are so consistemt with tutorials that 1 week seems ages.Anyway we are continuing.
Today we are covering how to make a basic PDF viewer.We shall load all pdf documnets from the downloads directory in our SD Card.Then we display them in a gridview with cards.
When you click a single pdf,we open/render that pdf in a new pdf activity.This is a standalone app.We are not opening any third party intent from the device.We are instead using a third party library,android pdf viewer to render our pdf.
The user shall be able to navigate by swiping or scrolling,zooming etc.

Cheers.

Related Tags :
android pdf viewer,android pdf renderer,pdf sdcards,load pdf,read pdf,scroll,zoom,pdf reader full,gridview pdf,pdf external storage,intent,pdf activity,android filesystem,programmingwizards,render pdfs,portable document fromat,android full apps

RRelated Posts

12 Mistakes You Make While Charging Your Phone

How to Prolong the Life of Your Battery. In case the battery of your favorite gadget can't keep up with the workload and dies too quickly you must be looking for ways how to make it last longer.

Find Out Who’s Tracking You Through Your Phone

Did you know that anyone can get your personal information and read your private messages? We’ve gathered the most useful codes for smartphones all in one video, together with some instructions on

FALSE LASHES: Do's and Don'ts | For Beginners!

Hey Larlees, todays video is on lashes do's and don'ts. This video has been much requested from you guys and I hope it was helpful I used the new KISS Blowout & Triple Push Up lashes available at

CComments

  • SoCu
    Thanks for the tutorial, can you help me with the problem I have, without modifying the code it shows me these errors, http://funkyimg.com/i/2KT2H.png how can I fix it.
  • rahul Varmas
    Sir I want to take question and answer in pdf with the help of app.that is what app? Please anybody help
  • Nghĩa Lê Minh Trung
    help me
    /storage/emulated/0/Download
    File downloadsFolder= Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
    File[] files = downloadsFolder.listFiles();
  • Fauzur Rahman
    thanks for the sharing..

    i want to ask you, if you dont mind, how to retrieve that pdf files from firebase storage?? not from asset or from external storage
  • Nick Bracamonte
    hi sir. how about getting all the data inside a text file from a media file picker. what's the code for that ?
  • Avastus Learn
    mport com.github.barteksc.pdfviewer.ScrollBar;
    import com.github.barteksc.pdfviewer.PDFView;
    import com.github.barteksc.pdfviewer.listener.OnLoadCompleteListener;

    import java.io.File;

    public class PDF_Activity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_pdf_);

    //PDFVIEW SHALL DISPLAY OUR PDFS
    PDFView pdfView= (PDFView) findViewById(R.id.pdfView);
    //SCROLLBAR TO ENABLE SCROLLING
    ScrollBar scrollBar1 = (ScrollBar) findViewById(R.id.scrollBar);
    pdfView.setScrollBar(scrollBar1);
    //VERTICAL SCROLLING
    scrollBar1.setHorizontal(false);
    //SACRIFICE MEMORY FOR QUALITY
    //pdfView.useBestQuality(true)

    The ScrollBar is in Red , this is the only problem when i follow your instructions
    im using the same dependencies as yours..

    And import com.github.barteksc.pdfviewer.ScrollBar; is in black and white, not working..

    how to fix it?

    I hope you response
  • SocialPk
    How to add Search Icon... to search within PDF view
  • vinit poojary
    what if i want to read pdf from assets folder ?
  • genbert naex
    when i click the email button the pdf file is not showing and application is force close how can i fix it?
  • ASHIQUR RAHMAN
    Great tutorial. But it takes huge ammount of memory. I build a pdf reader by following this series of videos but it takes more than 25MB memory. how can i minimize this memory size?please help. Thank you.
  • Mr Jeet Mumbaikar
    Sir can show pdf files from assets folder?
  • Adul wahab Khan
    ProgrammingWizards TV,i want to read pdf file from MS Sql server where pdf file store in the form of binary how it is possible kindly
    help me
  • Adul wahab Khan
    it is most helpful tutorial for me.
  • World's Viral News
    Can i download .pdf file into this Application by Webview to View or Download File to view
  • Mohnish Shende
    @ProgrammingWizards Please help!!!
    I need to load pdfs from the assets folder what do i do?
  • Emmanuel Ofoli Quaye
    thanks so much, but what if i want to read pdf from assets folder or resource folder..please help
  • Ravi Teja
    how to put pdf file into download folder please tell
  • Branigan Arunga
    uko sawa kijana !!
    always coming to my rescue. thanks man
  • Dipesh Jadhav
    I have so much respect for people who spend their time to teach us something ..Good Job bro ..and thank you!
  • thangal konnar
    NOOOOOOOOOOOOOOOOO saund..
    only SO...only so
  • jp norva
    Will it work if I use sdk version 21? pls reply asap. thanks.
  • Denis Adao
    tem como disponibilizar código Fonte?
  • Denis Adao
    Excelente man.
  • Ajitesh Singh
    can you give some idea on how to do it remotely
  • Hayk Galstyan
    This is awesome, thank you!
  • Cali Rira
    Hi
    I need help you
    I have Note5
    the part problem

    getExternalStoragePublicDirectory

    note 5 not External Storage ???
  • Luís Erivaldo
    Hello,

    thanks for this amazing video.

    in the pdf file director, can use online external directory like google drive?
  • ProgrammingWizards TV
    SOURCE CODE EREFRENCE : http://camposha.info/source/gridview-pdf-listrenderpagezoom/

    TEACH AT PROGRAMMINGWIZARDS TV

    ProgrammingWizards TV is now an open channel and anybody can publish any computer related video. Use this chance to teach anything to be viewed by thousands and thousands of people. This also helps you learn by teaching others. If you are interested in publishing a video at ProgrammingWizards TV contact us at oclemmi@gmail.com
  • Muhammad Hashfi Luthfi Robbani
    Great Tutorial, I've search this code on your website but I couldn't found this code..
    can you give me a compressed file for this code ? send me to mhashfi1st@gmail.com
    Thank You
  • Ahmed Hacılı
    hello how i can get this source code
  • Mohamed Zardheye
    great tutorial I have been searching this tutorial for a while, finally I got but please create xamarin android tutorial about this. because am xamarin developer
    hugs from Somaliland (northern somalia)