Skip to content

πŸ“šπŸ“”Convert your dayone journal to pdf book.

Notifications You must be signed in to change notification settings

jackeyGao/dayone2PDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

dayone2PDF is a script for convert your dayone journal to pdf book.

dayone2PDF is just render html using dayone export file then print the PDF with pyQt5.

Requirements

  • Python3.6+
  • PyQt5==5.11.3
  • Jinja2
  • PyPDF2

see requirements.txt file for more package's dependencies.

Usage

git clone https://github.com/jackeyGao/dayone2PDF
pip install -r requirements.txt

1. Export dayone

Export dayone data from dayone app. unzip to current directory. then rename is ./dayone.

So, The directory structure should be like this:

.
β”œβ”€β”€ assets
β”œβ”€β”€ create_pdf.py
β”œβ”€β”€ dayone          # The dayone export directory.
    β”œβ”€β”€ 2018.json
    β”œβ”€β”€ ...         # Your journal set such as ***.json.
    └── photos/     # Your journal photos.
β”œβ”€β”€ md.py
β”œβ”€β”€ pdfs
β”œβ”€β”€ render.py
β”œβ”€β”€ requirements.txt
└── templates

2. Render HTML

python render.py

3. Create PDF file of journal set

python create_pdf.py output/2018.json

python create_pdf.py output/{ other set }.json

Will multiple pdf book if your journal set is multiple

License

MIT License.

About

πŸ“šπŸ“”Convert your dayone journal to pdf book.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published