Android-Pdf-Viewer-Library


Source link: https://github.com/jblough/Android-Pdf-Viewer-Library

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);

Resources

Online tool for converting SVG to Android VectorDrawable XML resource file.

JDROID Framework provides a programming and architectural model for modern Java-based enterprise and android applications.

This library provides a fully customizable linear compass view.

BlurDialogFragment allows to display DialogFragment with a burring effect behind. The blurring part is achieved through FastBlur algorithm.

This project is based on android.support.v4.app.DialogFragment and android.support.v7.app.ActionBarActivity.

sweet-alert-dialog is a library to show beautiful alert dialogs.

Implementation of Ripple effect from Material Design for Android API 9+.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes