Gathering detailed insights and metrics for @talaikis/pdf-viewer-reactjs
Gathering detailed insights and metrics for @talaikis/pdf-viewer-reactjs
Gathering detailed insights and metrics for @talaikis/pdf-viewer-reactjs
Gathering detailed insights and metrics for @talaikis/pdf-viewer-reactjs
npm install @talaikis/pdf-viewer-reactjs
Typescript
Module System
Node Version
NPM Version
JavaScript (96.61%)
HTML (1.73%)
CSS (1.51%)
Shell (0.15%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
145 Stars
170 Commits
67 Forks
1 Watchers
23 Branches
7 Contributors
Updated on Feb 27, 2025
Latest Version
2.2.3
Package Id
@talaikis/pdf-viewer-reactjs@2.2.3
Unpacked Size
33.95 kB
Size
8.51 kB
File Count
6
NPM Version
8.19.2
Node Version
18.11.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
Note. This fork is purely personal design related, no new functionality here, so do not use.
Simple react PDF Viewer component with controls like
Every element can be styled upon your preferences using default classes your own and also custom react element can be passed.
it is originally forked from mgr-pdf-viewer-react
npm install pdf-viewer-reactjs
Due to causing broken css issue bulma, bulma-helpers & material-design-icons are removed from dependencies and added as peerDependencies
Please install bulma, bulma-helpers & material-design-icons from npm by yourself or provide custom css as per your requirement
1import React from 'react' 2import PDFViewer from 'pdf-viewer-reactjs' 3 4const ExamplePDFViewer = () => { 5 return ( 6 <PDFViewer 7 document={{ 8 url: 'https://arxiv.org/pdf/quant-ph/0410100.pdf', 9 }} 10 /> 11 ) 12} 13 14export default ExamplePDFViewer
React component prop. types:
document
:
Type:
1PropTypes.shape({ 2 url: String, // URL to the pdf 3 base64: String, // PDF file encoded in base64 4})
Required: true
Description: Provides a way to fetch the PDF document
password
:
withCredentials
:
page
:
scale
:
scaleStep
:
maxScale
:
minScale
:
rotationAngle
:
onDocumentClick
:
onPrevBtnClick
:
onNextBtnClick
:
onZoom
:
onRotation
:
getMaxPageCount
:
css
:
canvasCss
:
hideNavbar
:
navbarOnTop
:
hideZoom
:
hideRotation
:
loader
:
alert
:
showThumbnail
:
1PropTypes.shape({
2 scale: PropTypes.number, // Thumbnail scale, ranges from 1 to 5
3 rotationAngle: PropTypes.number, // Thumbnail rotation angle, values can be -90, 0 or 90. Default is 0
4})
protectContent
:
watermark
:
1PropTypes.shape({
2 text: PropTypes.string, // Watermark text
3 diagonal: PropTypes.bool, // Watermark placement true for Diagonal, false for Horizontal
4 opacity: PropTypes.string, // Watermark opacity, ranges from 0 to 1
5 font: PropTypes.string, // custom font name default is 'Comic Sans MS'
6 size: PropTypes.string, // Fontsize of Watermark
7 color: PropTypes.string, // Color(hexcode) of the watermark
8})
navigation
:
Type:
1PropTypes.oneOfType([
2 // Can be an object with css classes or react elements to be rendered
3 PropTypes.shape({
4 css: PropTypes.shape({
5 navbarWrapper: String, // CSS Class for the Navbar Wrapper
6 zoomOutBtn: String, // CSS Class for the ZoomOut Button
7 resetZoomBtn: String, // CSS Class for the Reset Zoom Button
8 zoomInBtn: String, // CSS Class for the ZoomIn Button
9 previousPageBtn: String, // CSS Class for the PreviousPage button
10 pageIndicator: String, // CSS Class for the Page Indicator
11 nextPageBtn: String, // CSS Class for the NextPage button
12 rotateLeftBtn: String, // CSS Class for the RotateLeft button
13 resetRotationBtn: String, // CSS Class for the Reset Rotation button
14 rotateRightBtn: String // CSS Class for the RotateRight button
15 })
16 // Or a full navigation component
17 PropTypes.any // Full navigation React element
18]);
Required: false
Description: Defines the navigation bar styles and/or elements.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
112 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