A Python script to convert PDF pages to images and upload them to Gyazo.
The URLs of the uploaded images are copied to the clipboard.
- Python >= 3.8
- Gyazo account and API token
Clone the repository and install
git clone https://github.com/yosider/gyazo-pdf.git
cd gyazo-pdf
pip install .
Create a config file at ~/.config/gyazo_pdf/config.yaml
and set your Gyazo API token and the directory where your PDFs are stored.
GYAZO_API_TOKEN: ...
PDF_DIR: /path/to/dir # The script searches pdf files in this directory
Then run the command:
gp example.pdf
or you can omit the file name to upload the latest PDF file in the directory:
gp