Goodnotes is a note-taking app with a functionnality that allows users to send PDFs files(only) to their goodnotes app using a private goodnotes email.
This script allows you to convert and send all your images/documents in one email from your gmail address to your goodnotes email address.
This script uses img2pdf and pandoc for the conversion part, you will find a list of supported input formats below.
For archives, it only supports .zip and cannot extract nested archives.
- You will need to install the dependencies specified in requirements.txt
- You will need to create a .env file with the following informations.
I recommand creating a new gmail account for this usage.EMAIL_SENDER = your gmail address EMAIL_PASSWORD = your gmail password EMAIL_RECEIVER = your goodnotes email
You will need to move this script and .env in the same directory where are located the files you want to convert and send.
There are 2 commands:
-
The following command will convert any files in the current directory and subdirectories.
It will extract zips in a folder and convert their files(directory and subdirectories).python3 main.py
Example:
-
You can decide to only send already converted PDFs files using the argument "-send-only". This following command will look for any PDFs files in the current directory and subdirectories.
It will extract files from zips to look for PDFs files.python3 main.py -send-only
Exemple:
- This script extracts a zip in a folder of the same name, if a folder already exists the programm stops.
- If you convert a file and a PDF of the same name already exists, your PDF will be overwritten with the new converted PDF file.
Here are the following input formats supported by this script:
For Img2pdf:
Table of input formats from https://pypi.org/project/img2pdf/ :
For Pandoc:
Table of input formats from Pandoc User's Guide https://pandoc.org/MANUAL.html :
- Support for other email providers.
- Support for other types of archives, currently it only supports .zip.
- Support for nested archives.