Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9150817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:39:43+00:00 2026-06-17T11:39:43+00:00

Possible Duplicate: Example of code to implement a PDF reader Is there a Free

  • 0

Possible Duplicate:
Example of code to implement a PDF reader

Is there a Free PDF Viewer that I can use for my Application?

I am looking for a PDF Viewer that can search, highlight text, view the page that user wants, and without altering the contents of the PDF file. Just like Adobe Reader but for Android that can be implemented to a Application.

You can link me to a same question or source code.

EDIT:

I have found this question “Pdf viewer api/library for android app sample code?” but I think his looking for a Reader. this question “pdf viewer library for android” I read that to view pdf it should be Natively and the solution for that is to use External Applications.

If I use external application, I want the external application accepts PDF Filepath, Page to view, and Keyword for search programmatically but i think external application wont let me do that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:39:44+00:00Added an answer on June 17, 2026 at 11:39 am

    Use Below Code for Read PDF using PDFViewer.jar library, it will solve your problem.

    First.java

    public class First extends ListActivity {
    
        String[] pdflist;
        File[] imagelist;
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            //setContentView(R.layout.main);
    
            File images = Environment.getExternalStorageDirectory();
            imagelist = images.listFiles(new FilenameFilter() {
                public boolean accept(File dir, String name) {
                    return ((name.endsWith(".pdf")));
                }
            });
            pdflist = new String[imagelist.length];
            for (int i = 0; i < imagelist.length; i++) {
                pdflist[i] = imagelist[i].getName();
            }
            this.setListAdapter(new ArrayAdapter<String>(this,
                    android.R.layout.simple_list_item_1, pdflist));
        }
    
        protected void onListItemClick(ListView l, View v, int position, long id) {
            super.onListItemClick(l, v, position, id);
            String path = imagelist[(int) id].getAbsolutePath();
            openPdfIntent(path);
        }
    
        private void openPdfIntent(String path) {
            try {
                final Intent intent = new Intent(First.this, Second.class);
                intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME, path);
                startActivity(intent);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
    

    Second.java

    public class Second extends PdfViewerActivity {
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
        }
    
        public int getPreviousPageImageResource() {
            return R.drawable.left_arrow;
        }
    
        public int getNextPageImageResource() {
            return R.drawable.right_arrow;
        }
    
        public int getZoomInImageResource() {
            return R.drawable.zoom_in;
        }
    
        public int getZoomOutImageResource() {
            return R.drawable.zoom_out;
        }
    
        public int getPdfPasswordLayoutResource() {
            return R.layout.pdf_file_password;
        }
    
        public int getPdfPageNumberResource() {
            return R.layout.dialog_pagenumber;
        }
    
        public int getPdfPasswordEditField() {
            return R.id.etPassword;
        }
    
        public int getPdfPasswordOkButton() {
            return R.id.btOK;
        }
    
        public int getPdfPasswordExitButton() {
            return R.id.btExit;
        }
    
        public int getPdfPageNumberEditField() {
            return R.id.pagenum_edit;
        }
    }
    

    And Declared Both Activities into your manifest file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Understanding Python decorators Could you please give a short code example that
Possible Duplicate: javascript substring How can I do substr (php) in JS? Example code
Possible Duplicate: C programming division in the following code example the result should yield
Possible duplicate What is the best open source example of a lightweight Windows Application?
Possible Duplicate: Class construction with initial values While I was looking at c++ example
Possible Duplicate: How to convert from int to string in objective c: example code…
Possible Duplicate: getting identity row value using ADO.NET Entity This is my example code:
Possible Duplicate: Is JavaScript’s Math broken? I wrote some simple C# code that runs
Possible Duplicate: how can I do use Except() between two SelectListItem lists I have
Possible Duplicate: Shortcut “or-assignment” (|=) operator in Java I found the following example code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.