Gathering detailed insights and metrics for jspdf-with-html2canvas
Gathering detailed insights and metrics for jspdf-with-html2canvas
Gathering detailed insights and metrics for jspdf-with-html2canvas
Gathering detailed insights and metrics for jspdf-with-html2canvas
npm install jspdf-with-html2canvas
Typescript
Module System
Node Version
NPM Version
63.8
Supply Chain
96.7
Quality
74.5
Maintenance
100
Vulnerability
99.6
License
JavaScript (97.34%)
ActionScript (1.52%)
HTML (1.14%)
Total Downloads
7,862
Last Day
2
Last Week
15
Last Month
43
Last Year
436
1,086 Commits
1 Forks
1 Watching
71 Branches
1 Contributors
Latest Version
1.3.5-2
Package Id
jspdf-with-html2canvas@1.3.5-2
Size
220.18 kB
NPM Version
5.5.1
Node Version
8.2.1
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
200%
15
Compared to previous week
Last month
-34.8%
43
Compared to previous month
Last year
-22.3%
436
Compared to previous year
4
22
A library to generate PDFs in client-side JavaScript.
You can catch me on twitter: @MrRio or head over to my company's website for consultancy.
The easiest way to get started is to drop the CDN hosted library into your page:
1<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.5/jspdf.debug.js"></script>
or can always get latest version via unpkg
1<script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.js"></script>
Using yarn:
1yarn add jspdf
Using npm:
1npm install jspdf --save
Then you're ready to start making your document:
1// Default export is a4 paper, portrait, using milimeters for units 2var doc = new jsPDF() 3 4doc.text('Hello world!', 10, 10) 5doc.save('a4.pdf')
If you want to change the paper size, orientation, or units, you can do:
1// Landscape export, 2×4 inches 2var doc = new jsPDF({ 3 orientation: 'landscape', 4 unit: 'in', 5 format: [4, 2] 6}) 7 8doc.text('Hello world!', 1, 1) 9doc.save('two-by-four.pdf')
Great! Now give us a Star :)
Build the library with npm run build
. This will fetch all dependencies and then compile the dist
files. To see the examples locally you can start a web server with npm start
and go to localhost:8000
.
Copyright (c) 2010-2017 James Hall, https://github.com/MrRio/jsPDF
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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