Gathering detailed insights and metrics for rn-pdf-png
Gathering detailed insights and metrics for rn-pdf-png
Gathering detailed insights and metrics for rn-pdf-png
Gathering detailed insights and metrics for rn-pdf-png
rn-document-viewer
React Native Native Module Bridge Quicklock Document Viewer for IOS + Android supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx + Video Player mp4 supported
antu-rn-doc-viewer
React Native Native Module Bridge Quicklock Document Viewer for IOS + Android supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx + Video Player mp4 supported
rn-lsiding-doc-viewer
React Native Native Module Bridge Quicklock Document Viewer for IOS + Android supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx + Video Player mp4 supported
npm install rn-pdf-png
Typescript
Module System
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
1.0.5
Package Id
rn-pdf-png@1.0.5
Unpacked Size
3.90 MB
Size
606.76 kB
File Count
590
NPM Version
8.3.0
Node Version
16.13.0
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
19
A react native module for generating thumbnail for PDF files.
A wrapper for:
No other JavaScript or native dependencies needed.
1npm install react-native-pdf-thumbnail
1import PdfThumbnail from "react-native-pdf-thumbnail"; 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
The example app contains a document picker, it generates and displays a thumbnail for the selected PDF file.
To run it:
1yarn bootstrap 2cd example 3yarn ios 4yarn 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
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
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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