Client/server side PDF printing in pure JavaScript
Installations
npm install pdfmake
Developer Guide
Typescript
No
Module System
CommonJS, UMD
Min. Node Version
>=18
Node Version
20.17.0
NPM Version
10.8.2
Score
95.2
Supply Chain
93.6
Quality
91.6
Maintenance
100
Vulnerability
99.3
License
Releases
Contributors
Languages
JavaScript (99.75%)
HTML (0.14%)
CSS (0.11%)
Developer
Download Statistics
Total Downloads
170,612,421
Last Day
168,498
Last Week
727,462
Last Month
3,258,221
Last Year
45,794,524
GitHub Statistics
11,820 Stars
1,497 Commits
2,050 Forks
251 Watching
6 Branches
89 Contributors
Bundle Size
1.27 MB
Minified
524.33 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.2.18
Package Id
pdfmake@0.2.18
Unpacked Size
12.92 MB
Size
3.63 MB
File Count
37
NPM Version
10.8.2
Node Version
20.17.0
Publised On
01 Jan 2025
Total Downloads
Cumulative downloads
Total Downloads
170,612,421
Last day
-3.5%
168,498
Compared to previous day
Last week
-15.5%
727,462
Compared to previous week
Last month
1.8%
3,258,221
Compared to previous month
Last year
7.6%
45,794,524
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
31
pdfmake
PDF document generation library for server-side and client-side usage in pure JavaScript.
Check out the playground and examples.
Features
- line-wrapping,
- text-alignments (left, right, centered, justified),
- numbered and bulleted lists,
- tables and columns
- auto/fixed/star-sized widths,
- col-spans and row-spans,
- headers automatically repeated in case of a page-break,
- images and vector graphics,
- convenient styling and style inheritance,
- page headers and footers:
- static or dynamic content,
- access to current page number and page count,
- background-layer,
- page dimensions and orientations,
- margins,
- custom page breaks,
- font embedding,
- support for complex, multi-level (nested) structures,
- table of contents,
- helper methods for opening/printing/downloading the generated PDF,
- setting of PDF metadata (e.g. author, subject).
Documentation
Documentation URL: https://pdfmake.github.io/docs/
Building from sources version 0.2.x
using npm:
git clone --branch 0.2 https://github.com/bpampuch/pdfmake.git
cd pdfmake
npm install
npm run build
using yarn:
git clone --branch 0.2 https://github.com/bpampuch/pdfmake.git
cd pdfmake
yarn
yarn run build
License
MIT
Authors
pdfmake is based on a truly amazing library pdfkit (credits to @devongovett).
Thanks to all contributors.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/node.js.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/bpampuch/pdfmake/node.js.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/bpampuch/pdfmake/node.js.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:26
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
- Warn: branch protection not enabled for branch '0.2'
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
4.3
/10
Last Scanned on 2025-01-27
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