https://github.com/janumedia/pdfreaderane
PDF Reader Native Extension for Android
https://github.com/janumedia/pdfreaderane
adobe android ane java pdf-reader
Last synced: 6 months ago
JSON representation
PDF Reader Native Extension for Android
- Host: GitHub
- URL: https://github.com/janumedia/pdfreaderane
- Owner: janumedia
- Created: 2014-02-26T06:17:19.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-27T23:31:39.000Z (about 12 years ago)
- Last Synced: 2025-04-13T09:13:29.206Z (about 1 year ago)
- Topics: adobe, android, ane, java, pdf-reader
- Language: Java
- Size: 609 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PDF Reader ANE for Android
======================================
PDFReaderANE - PDF Reader Native Extension for Android applications using PDF installed Application
Version
---------
This is version 1.0 of this extension.
Extension ID
---------
```
com.janumedia.ane.pdfreader
```
Usage
---------
```
var pdfFile = File.documentsDirectory.resolvePath("download/mypdf-file.pdf");
// note : make sure to put your pdf to accessable path, usually inside documentsDirectory
var pdfReader:PDFReader = new PDFReader();
// check if it has PDF applicaton installed
pdfReader.hasPDFApplication(pdfFile);
// will return true if it has PDF application installed
// will return false if no PDF application installed
// open with default PDF installed application
pdfReader.openPDF(pdfFile);
// will return 4 types of string
// PDFReader.SUCCESS when succcesfully open PDF application selection intent
// PDFReader.ERROR_NO_DEFAULT_APP when no PDF application installed
// PDFReader.ERROR when open intent failed
// PDFReader.FILE_NOT_FOUND when in correct file path
```
Make sure to add this permission on your manifest file:
```
```
Author
---------
This ANE has been writen by [I Nengah Januartha](https://github.com/janumedia). It belongs to [JanuMedia Inc.](http://www.janumedia.com) and is distributed under the [Apache Licence, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).