Gathering detailed insights and metrics for notion-md-pdf
Gathering detailed insights and metrics for notion-md-pdf
Gathering detailed insights and metrics for notion-md-pdf
Gathering detailed insights and metrics for notion-md-pdf
Converts pages exported from Notion as Markdown into PDF files using the command line due to browser rendering issues.
npm install notion-md-pdf
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
19 Stars
20 Commits
3 Forks
2 Watchers
8 Branches
1 Contributors
Updated on Feb 19, 2023
Latest Version
1.1.2
Package Id
notion-md-pdf@1.1.2
Unpacked Size
65.51 kB
Size
21.63 kB
File Count
9
NPM Version
5.6.0
Node Version
8.11.4
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
1
Converts pages exported from Notion as Markdown into PDF files using the command line due to browser rendering issues.
Provided by default within the application, Notion's "Export -> Print as PDF" functionality only allows a single page to be printed to PDF at a time. As a result, formatting issues occur in most cases (e.g. multiline code snippets) from the browser attempting to render the markup unsuccessfully.
1Markdown Files -> marked -> HTML Files -> wkhtmltoPDF -> PDF Files
The methodology used by this tool is simply to take exported Markdown pages from Notion, individually or in bulk, uncompress the downloaded archive and then process each by first parsing into HTML using marked
and then converting to PDF using wkhtmltopdf
.
Note: wkhtmltopdf
is used instead of other PhantomJS
-based methods which seem to suffer some similar defects (#10373, #10669, #13524) as the browser, even though both are using the QtWebKit rendering engine.
Use your ideal package manager for Node and install globally.
Yarn
1yarn global add notion-md-pdf
NPM
1npm install notion-md-pdf -g
Call the following shell command with the desired zip archive of Markdown files as the first argument.
1notion-md-pdf Export-XXXXXX.zip 2# Conversion completed: ~/Document-Name-XXXXXX-1.pdf
1notion-md-pdf Document-Name-XXXXXX.md 2# Conversion completed: ~/Document-Name-XXXXXX-1.pdf
Windows (64-bit), Mac OS X (64-bit), and Linux (32-bit) (64-bit) OS are supported.
Based on the version of wkhtmltopdf
that is downloaded from a CDN by the post installation script.
Feel free to submit a pull request at any time.
This project is licensed under the MIT License - see the LICENSE file for details
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/16 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
project is not fuzzed
Details
Reason
security policy file not detected
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
23 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