Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/myflashlab/PDF-ANE

Pdf Viewer air native extension lets you open pdf files from your Adobe Air mobile apps. Supported on Android and iOS
https://github.com/myflashlab/PDF-ANE

Last synced: about 2 months ago
JSON representation

Pdf Viewer air native extension lets you open pdf files from your Adobe Air mobile apps. Supported on Android and iOS

Awesome Lists containing this project

README

        

# PDF Viewer ANE (Android+iOS)
Pdf Viewer Air Native Extension lets you open pdf files right from your Air mobile apps. On both Android and iOS, it will open a dialog and lets you select which program you wish to use for opening the file.

[find the latest **asdoc** for this ANE here.](http://myflashlab.github.io/asdoc/com/myflashlab/air/extensions/pdf/package-detail.html)

# Air Usage
```actionscript
import com.myflashlab.air.extensions.pdf.*;

var _ex:PdfViewer = new PdfViewer();
_ex.addEventListener(PdfViewerEvent.STATUS, onStatus);

var result:Boolean = _ex.run(File.cacheDirectory.resolvePath("sample_pdfViewer_ane.pdf"));
trace(result);

private function onStatus(e:PdfViewerEvent):void
{
trace(e.param);
}
```

# Air .xml manifest
```xml




com.myflashlab.air.extensions.pdfViewer


com.myflashlab.air.extensions.dependency.androidx.core
com.myflashlab.air.extensions.dependency.androidx.lifecycle
com.myflashlab.air.extensions.dependency.overrideAir

```

# Requirements
* Android SDK 19+
* iOS 10.0+
* AIR SDK 33+

# Commercial Version
https://www.myflashlabs.com/product/pdf-reader-ane-adobe-air-native-extension/

[![PDF Viewer ANE](https://www.myflashlabs.com/wp-content/uploads/2015/11/product_adobe-air-ane-extension-pdf-2018-595x738.jpg)](https://www.myflashlabs.com/product/pdf-reader-ane-adobe-air-native-extension/)

# Tech Details
On iOS side, the dialog will always open but on the Android side, if there is no application installed on the device to be able to handle PDF files, the extension will return false. So you should probably promote that user to install Acrobat reader app or any other application that can handle PDF files.

On Android side, your pdf file must be copied to ```File.cacheDirectory```. On iOS side, your file can be anywhere! ```File.applicationDirectory```, ```File.applicationStorageDirectory``` or ```File.documentsDirectory``` they all work.

# Tutorials
[How to embed ANEs into **FlashBuilder**, **FlashCC** and **FlashDevelop**](https://www.youtube.com/watch?v=Oubsb_3F3ec&list=PL_mmSjScdnxnSDTMYb1iDX4LemhIJrt1O)

# Premium Support #
[![Premium Support package](https://www.myflashlabs.com/wp-content/uploads/2016/06/professional-support.jpg)](https://www.myflashlabs.com/product/myflashlabs-support/)
If you are an [active MyFlashLabs club member](https://www.myflashlabs.com/product/myflashlabs-club-membership/), you will have access to our private and secure support ticket system for all our ANEs. Even if you are not a member, you can still receive premium help if you purchase the [premium support package](https://www.myflashlabs.com/product/myflashlabs-support/).