Go to file
contrudar 17508f8147 fix some problems of pdf lib 2016-11-17 19:11:51 +03:00
PdfView fix some problems of pdf lib 2016-11-17 19:11:51 +03:00
crypto-src/org/bouncycastle/crypto Initial commit 2011-08-27 22:02:23 -04:00
gen/net/sf/andpdf/pdfviewer changetoGradle 2015-11-16 16:46:41 +08:00
gestureimageview add zoom support 2016-10-05 21:04:32 +03:00
gradle/wrapper bugfix 2016-04-20 11:28:01 +08:00
res Initial commit 2011-08-27 22:02:23 -04:00
src Reduce maximum zoom level to avoid out of memory exception 2011-09-11 15:51:07 -04:00
.classpath Initial commit 2011-08-27 22:02:23 -04:00
.gitignore make project compilable 2016-07-27 03:34:39 +03:00
.project Initial commit 2011-08-27 22:02:23 -04:00
Android-Pdf-Viewer-Library.iml make project compilable 2016-07-27 03:34:39 +03:00
AndroidManifest.xml Initial commit 2011-08-27 22:02:23 -04:00
PdfViewer.jar Reduce maximum zoom level to avoid out of memory exception 2011-09-11 15:51:07 -04:00
README.txt Used more generic derived class name example 2011-09-05 19:39:05 -04:00
build.gradle make project compilable 2016-07-27 03:34:39 +03:00
build.xml Initial commit 2011-08-27 22:02:23 -04:00
default.properties Initial commit 2011-08-27 22:02:23 -04:00
gradlew add sample and some utils 2015-11-16 17:22:05 +08:00
gradlew.bat add sample and some utils 2015-11-16 17:22:05 +08:00
import-summary.txt add gesture library 2015-11-17 17:00:12 +08:00
local.properties bugfix 2016-04-20 11:28:01 +08:00
proguard.cfg Initial commit 2011-08-27 22:02:23 -04:00
settings.gradle clean up 2016-10-05 15:42:24 +03:00

README.txt

This is a packaging of the project "Android PDF Viewer" (http://andpdf.sourceforge.net/) into a reusable library to make PDF viewing easier from within your Android application.

Consistent with the Android PDF Viewer project, the licensing for the PdfViewer project is LGPL

Quickstart incorporating a PDF viewing activity into your project:

1) Add PdfViewer.jar into your project's build path

2) Copy the following drawable resources from PdfViewer/res/drawable into YourProject/res/drawable
     left_arrow.png
     right_arrow.png
     zoom_in.png
     zoom_out.png

3) Copy the following layout resources from PdfViewer/res/layout into YourProject/res/layout
     dialog_pagenumber.xml
     pdf_file_password.xml

4) Derive your PDF activity from net.sf.andpdf.pdfviewer.PdfViewerActivity

5) Using the default drawables and layouts:
     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; }

6) Invoke your PdfViewActivity derived with the following code:
     Intent intent = new Intent(this, YourPdfViewerActivity.class);
     intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME, "PATH TO PDF GOES HERE");
     startActivity(intent);