Gathering detailed insights and metrics for react-native-pdf-thumbnail-kl
Gathering detailed insights and metrics for react-native-pdf-thumbnail-kl
Gathering detailed insights and metrics for react-native-pdf-thumbnail-kl
Gathering detailed insights and metrics for react-native-pdf-thumbnail-kl
react native module for generating thumbnail for PDF files
npm install react-native-pdf-thumbnail-kl
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Java (23.17%)
Kotlin (17.27%)
Ruby (12.99%)
TypeScript (12.37%)
Swift (12.24%)
JavaScript (9.78%)
Objective-C (7.57%)
Objective-C++ (4.28%)
C (0.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
46 Stars
87 Commits
24 Forks
1 Watchers
1 Branches
4 Contributors
Updated on Jun 30, 2025
Latest Version
0.1.6
Package Id
react-native-pdf-thumbnail-kl@0.1.6
Unpacked Size
31.28 kB
Size
9.39 kB
File Count
20
NPM Version
10.8.3
Node Version
22.9.0
Published on
Dec 05, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
22
A react native module for generating thumbnail for PDF files.
A wrapper for:
No other JavaScript or native dependencies.
Note: This module does not work in Expo.
1npm install react-native-pdf-thumbnail-kl
1import PdfThumbnail from "react-native-pdf-thumbnail-kl"; 2 3// For iOS, the filePath can be a file URL. 4// For Android, the filePath can be either a content URI, a file URI or an absolute path. 5const filePath = 'file:///mnt/sdcard/myDocument.pdf'; 6const page = 0; 7 8// The thumbnail image is stored in caches directory, file uri is returned. 9// Image dimensions are also available to help you display it correctly. 10const { uri, width, height } = await PdfThumbnail.generate(filePath, page); 11 12// Generate thumbnails for all pages, returning an array of the object above. 13const results = await PdfThumbnail.generateAllPages(filePath); 14 15// Default compression quality is 80, you can optionally specify a quality between 0 and 100. 16const { uri, width, height } = await PdfThumbnail.generate(filePath, page, 95); 17const results = await PdfThumbnail.generateAllPages(filePath, 90);
The example app contains a document picker, it generates and displays a thumbnail for the selected PDF file.
To run it:
1yarn 2yarn example ios 3yarn example android
iOS | Android |
---|---|
![]() | ![]() |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
5 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 2/7 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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