A tool that you can choose either weasyprint
or chromedriver(save as pdf)
to convert Notion exported html files to pdf files.
- Download the binary and unzip it.
- Export Notion pages as HTML files and unzip the exported file.
-
Put the unzipped folder (which should contains all html files) inside the main.exe folder.
-
Run
main.exe
- The default mode is based on weasyprint. It will be a bit slower than the other mode, but the output pdfs are fairly good from my point of view. Because weasyprint could automatically create bookmarks associated with headers, I set this mode as default mode. Just double click the
main.exe
and wait. - The other mode is based on chromedriver, in this case
driver/chromedriver.exe
is necessary when execute the main.exe. Open command line, cd to main.exe's directory, and then runmain.exe -c
.
- The default mode is based on weasyprint. It will be a bit slower than the other mode, but the output pdfs are fairly good from my point of view. Because weasyprint could automatically create bookmarks associated with headers, I set this mode as default mode. Just double click the
The default mode use weasyprint to convert html file to pdf. It's an awesome package written fully based on Python.
The other mode use chromedriver to save html files as pdfs.
- Preserve directory hierarchy
- Implement link to block in exported pdfs
- Combin all subpages to one single pdf