Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.69 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.69 KB

Notion PDF

A tool that you can choose either weasyprint or chromedriver(save as pdf) to convert Notion exported html files to pdf files.

Download

Donwload for Windows

Usage

  1. Download the binary and unzip it.
  2. Export Notion pages as HTML files and unzip the exported file.

  1. Put the unzipped folder (which should contains all html files) inside the main.exe folder.

  2. Run main.exe

    1. 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.
    2. 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 run main.exe -c.

Credits

weasyprint

The default mode use weasyprint to convert html file to pdf. It's an awesome package written fully based on Python.

chromedriver

The other mode use chromedriver to save html files as pdfs.

Todo

  • Preserve directory hierarchy
  • Implement link to block in exported pdfs
  • Combin all subpages to one single pdf