{"id":13744134,"url":"https://github.com/myflashlab/PDF-ANE","last_synced_at":"2025-05-09T02:32:42.329Z","repository":{"id":82895692,"uuid":"50420794","full_name":"myflashlab/PDF-ANE","owner":"myflashlab","description":"Pdf Viewer air native extension lets you open pdf files from your Adobe Air mobile apps. Supported on Android and iOS","archived":true,"fork":false,"pushed_at":"2020-08-06T11:12:22.000Z","size":20711,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-15T15:42:11.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myflashlab.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-26T10:13:19.000Z","updated_at":"2023-12-20T18:38:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"71d7b08f-b02a-4271-bec9-339d8f692342","html_url":"https://github.com/myflashlab/PDF-ANE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2FPDF-ANE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2FPDF-ANE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2FPDF-ANE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2FPDF-ANE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myflashlab","download_url":"https://codeload.github.com/myflashlab/PDF-ANE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253177839,"owners_count":21866405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:03.677Z","updated_at":"2025-05-09T02:32:41.992Z","avatar_url":"https://github.com/myflashlab.png","language":"ActionScript","readme":"# PDF Viewer ANE (Android+iOS)\nPdf 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. \n\n[find the latest **asdoc** for this ANE here.](http://myflashlab.github.io/asdoc/com/myflashlab/air/extensions/pdf/package-detail.html)\n\n# Air Usage\n```actionscript\nimport com.myflashlab.air.extensions.pdf.*;\n\nvar _ex:PdfViewer = new PdfViewer();\n_ex.addEventListener(PdfViewerEvent.STATUS, onStatus);\n\nvar result:Boolean = _ex.run(File.cacheDirectory.resolvePath(\"sample_pdfViewer_ane.pdf\"));\ntrace(result);\n\nprivate function onStatus(e:PdfViewerEvent):void\n{\n\ttrace(e.param);\n}\n```\n\n# Air .xml manifest\n```xml\n\u003cuses-sdk android:targetSdkVersion=\"28\"/\u003e\n\u003capplication\u003e\n\n    \u003c!--\n        Other Activities, services, or providers of your Android app.\n    --\u003e\n\n\n    \u003c!--\n        Change [YOUR_PACKAGE_ID] to your own applicationID but keep\n        \".provider\" at the end. [YOUR_PACKAGE_ID].provider\n    --\u003e\n    \u003cprovider\n        android:name=\"com.myflashlabs.pdfViewer.AnePdfViewerProvider\"\n        android:authorities=\"[YOUR_PACKAGE_ID].provider\"\n        android:exported=\"false\"\n        android:grantUriPermissions=\"true\"\u003e\n        \u003cmeta-data\n            android:name=\"android.support.FILE_PROVIDER_PATHS\"\n            android:resource=\"@xml/pdf_viewer_ane_provider_paths\"/\u003e\n    \u003c/provider\u003e\n\n\u003capplication\u003e\n\n\n\n\n\u003cextensions\u003e\n\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.pdfViewer\u003c/extensionID\u003e\n\n\t\u003c!-- dependency ANEs --\u003e\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.dependency.androidx.core\u003c/extensionID\u003e\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.dependency.androidx.lifecycle\u003c/extensionID\u003e\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.dependency.overrideAir\u003c/extensionID\u003e\n\n\u003c/extensions\u003e\n```\n\n# Requirements\n* Android SDK 19+\n* iOS 10.0+\n* AIR SDK 33+\n\n# Commercial Version\nhttps://www.myflashlabs.com/product/pdf-reader-ane-adobe-air-native-extension/\n\n[![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/)\n\n# Tech Details\nOn 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.\n\nOn 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.\n\n# Tutorials\n[How to embed ANEs into **FlashBuilder**, **FlashCC** and **FlashDevelop**](https://www.youtube.com/watch?v=Oubsb_3F3ec\u0026list=PL_mmSjScdnxnSDTMYb1iDX4LemhIJrt1O)  \n\n# Premium Support #\n[![Premium Support package](https://www.myflashlabs.com/wp-content/uploads/2016/06/professional-support.jpg)](https://www.myflashlabs.com/product/myflashlabs-support/)\nIf 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/).","funding_links":[],"categories":["Native Extension","AIR Native Extensions"],"sub_categories":["Multimedia ANE"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyflashlab%2FPDF-ANE","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyflashlab%2FPDF-ANE","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyflashlab%2FPDF-ANE/lists"}