Gathering detailed insights and metrics for react-styled-pdf
Gathering detailed insights and metrics for react-styled-pdf
Gathering detailed insights and metrics for react-styled-pdf
Gathering detailed insights and metrics for react-styled-pdf
@react-pdf/styled-components
rpr-flextable
Quick flexbox-styled table builder for React PDF Wrapper.
@diahkomalasarinpm/at-a-recusandae
<div align="center"> <h1> <img src="https://github.com/diahkomalasarinpm/at-a-recusandae/assets/81325730/fb8c8369-e2c9-473f-8493-542fafdbfecc" width="80px"><br/>PDF Parser Client Side</h1> <a href="https://itsvg.in" target="_blank"><img src="https://img
npm install react-styled-pdf
Typescript
Module System
Node Version
NPM Version
JavaScript (90.66%)
CSS (8.01%)
HTML (1.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
59 Commits
4 Branches
1 Contributors
Updated on Feb 04, 2021
Latest Version
0.1.4
Package Id
react-styled-pdf@0.1.4
Unpacked Size
109.49 kB
Size
29.06 kB
File Count
4
NPM Version
6.4.1
Node Version
10.15.3
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
3
3
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 then inspired by pdf-viewer-reactjs
npm install pdf-viewer-reactjs
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/1805.00772.pdf' 9 }} 10 /> 11 ); 12}; 13 14export default ExamplePDFViewer;
React component prop. types:
document
:
Type:
1PropTypes.shape({ 2 file: Any, // File object, 3 url: String, // URL to fetch the pdf 4 connection: Object, // connection parameters to fetch the PDF, see PDF.js docs 5 base64: String, // PDF file encoded in base64 6 binary: UInt8Array 7});
Required: true
Description: Provides a way to fetch the PDF document
loader
:
page
:
scale
:
scaleStep
:
maxScale
:
rotationAngle
:
onDocumentClick
:
onPrevBtnClick
:
onNextBtnClick
:
css
:
canvasCss
:
hideNavbar
:
navbarOnTop
:
hideZoom
:
hideRotation
:
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 previous page button
6 zoomOutBtn: String, // CSS Class for the previous page button
7 resetZoomBtn: String, // CSS Class for the previous page button
8 zoomInBtn: String, // CSS Class for the previous page button
9 previousPageBtn: String, // CSS Class for the previous page button
10 pageIndicator: String, // CSS Class for the previous page button
11 nextPageBtn: String, // CSS Class for the previous page button
12 rotateLeftBtn: String, // CSS Class for the previous page button
13 resetRotationBtn: String, // CSS Class for the previous page button
14 rotateRightBtn: String // CSS Class for the previous page button
15 })
16 }),
17
18 // Or a full navigation component
19 PropTypes.any // Full navigation React element
20]);
Required: false
Description: Defines the navigation bar styles and/or elements.
The navigation
element should accept following properties:
page
for current page number
pages
for total number of pages
scale
for zoom
maxScale
for maximum zoom
rotationAngle
for rotation
hideZoom
for hiding zoom
hideRotation
for hding rotation
handleNextClick
for next button click
handlePrevClick
for previous button click
handleZoomIn
for zoom-in button click
handleResetZoom
for reset zoom button click
handleZoomOut
for zoom-out button click
handleRotateLeft
for left rotation
handleResetRotation
for reset rotation
handleRotateRight
for right rotation
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/27 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
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
144 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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