Giter Club home page Giter Club logo

pdfreaderane's Introduction

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

<extensionID>com.janumedia.ane.pdfreader</extensionID>

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:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Author

This ANE has been writen by I Nengah Januartha. It belongs to JanuMedia Inc. and is distributed under the Apache Licence, version 2.0.

pdfreaderane's People

Contributors

janumedia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.