pspdfkit-cordova
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -12,3 +12,3 @@ # Cordova Plugin - PSPDFKit for Android 6 | ||
- Cordova Android 8+. | ||
- PSPDFKit for Android 6.5 | ||
- PSPDFKit for Android 6.5.2 | ||
@@ -161,6 +161,19 @@ ## Installation | ||
> Note: If you're already a customer then please make sure that the package ID matches with your bundle ID that's assigned to your license (e.g. com.ionic.test). You can check this in your `AndroidManifest.xml` by searching for `package`. If you are using a trial license then you don't have to worry about that. | ||
5. Now open your `index.js` file located in `www/js/` and paste the below code into the `receivedEvent: function(id)` function. For this to work you need to create a folder called `documents` in `www` and paste a PDF in this folder. | ||
5. PSPDFKit requires modern Jetpack libraries AndroidX. To enable AndroidX modify the `config.xml` adding the following line in the `android` section: | ||
```diff | ||
... | ||
<platform name="android"> | ||
+ <preference name="AndroidXEnabled" value="true" /> | ||
<allow-intent href="market:*" /> | ||
</platform> | ||
... | ||
``` | ||
6. Now open your `index.js` file located in `www/js/` and paste the below code into the `onDeviceReady()` function. For this to work you need to create a folder called `documents` in `www` and paste a PDF in this folder. | ||
```javascript | ||
@@ -176,3 +189,3 @@ PSPDFKit.presentFromAssets("www/documents/A.pdf", { | ||
6. You are now ready to build and test your app! | ||
7. You are now ready to build and test your app! | ||
@@ -179,0 +192,0 @@ ```shell |
{ | ||
"name": "pspdfkit-cordova", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "PSPDFKit Cordova Plugin for Android and iOS", | ||
@@ -5,0 +5,0 @@ "cordova": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1363881
1