Gathering detailed insights and metrics for nativescript-pspdfkit
Gathering detailed insights and metrics for nativescript-pspdfkit
Gathering detailed insights and metrics for nativescript-pspdfkit
Gathering detailed insights and metrics for nativescript-pspdfkit
npm install nativescript-pspdfkit
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
6 Stars
67 Commits
4 Forks
5 Watching
6 Branches
1 Contributors
Updated on 30 Jan 2022
TypeScript (95.31%)
HTML (1.92%)
Shell (1.69%)
CSS (0.75%)
Ruby (0.33%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
50%
6
Compared to previous week
Last month
134.8%
54
Compared to previous month
Last year
-40.8%
657
Compared to previous year
NativeScript implementation of PSPDFKit (https://pspdfkit.com/). Currently for iOS only, Android support is coming soon.
Please note that this plugin is not production ready. You will have to fork this project to get your licensed version POD installed correctly (currently).
npm install nativescript-pspdfkit
Modify the activity entry within the AndroidManifest.xml file found in the
1<activity 2 android:name="com.github.TeamMaestro.TNSFragmentActivity" 3 android:label="@string/title_activity_kimera" 4 android:configChanges="keyboardHidden|orientation|screenSize"> 5 6 <activity android:name="com.pspdfkit.ui.PdfActivity" android:windowSoftInputMode="adjustNothing" /> 7 <meta-data android:name="pspdfkit_license_key" android:value="youKey"/>
Modify the defaultConfig entry within the app.gradle file found in the
defaultConfig {
minSdkVersion 19
1import {TNSPSPDFKit} from 'nativescript-pspdfkit'; 2let licenseKey = ''; 3let pspdfkit = new TNSPSPDFKit(licenseKey); 4/* 5 TNSPSPDFKitOptions { 6 scrollDirection?: 'vertical' | 'horizontal'; 7 backgroundColor?: string; 8 spreadFitting?: 'adaptive' | 'fit' | 'fill'; 9 thumbnailBar?: 'scrollable' | 'scrubber' | 'none'; 10 scrubberBar?: 'verticalRight' | 'verticalLeft'; 11 thumbnailSize?: string; 12 pageMode?: 'automatic' | 'single' | 'double'; 13 minZoom?: number; 14 maxZoom?: number; 15} 16 17*/ 18pspdfkit.display('~/example.pdf',{ scrollDirection: 'vertical' });
IMPORTANT: Make sure you include xmlns:pspdfkit="nativescript-pspdfkit" on the Page tag
1<pdfView:TNSPSPDFView scrollDirection="horizontal" scrubberBar="verticalRight" thumbnailBar="scrubber" spreadFitting="fill" src="~/example.pdf"/>
1import { TNSPSPDFView } from 'nativescript-pspdfkit'; 2import { registerElement } from "nativescript-angular/element-registry"; 3registerElement("TNSPSPDFView", () => require("nativescript-pspdfkit").TNSPSPDFView);
1<TNSPSPDFView selectedIndexChange="pageChanged" scrollDirection="horizontal" scrubberBar="verticalRight" thumbnailBar="scrubber" spreadFitting="fill" src="~/example.pdf"></TNSPSPDFView>
Webpack Setup worker loader -> link
Property | Default | Type | Required | Description |
---|---|---|---|---|
scrollDirection | vertical | string |
| |
scrubberBar | horizontal | string |
| |
thumbnailBar | none | boolean |
| |
spreadFitting | "adaptive" | string |
| |
thumbnailSize | Defaults to 88x125 on iPad and 53x75 on iPhone | string |
| |
pageMode | automatic | string |
| |
minZoom | 1 | number |
| |
maxZoom | 20 | number |
| |
searchResultZoom | 2 | number |
| |
formsEnabled | true | boolean |
| |
src | null | string |
|
IOS | Android |
---|---|
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/28 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
101 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More