Upload PDF file to Gyazo as images then convert Scrapbox format.
Download slides (e.g. https://speakerdeck.com/reiyw/effective-modern-python-2018). Run:
pdf2sb ~/Downloads/presentation.pdf | pbcopy
Paste copied text to a Scrapbox page:
- Install pdf2sb:
pip install pdf2sb
- Get Gyazo access token from here.
- Follow the instructions in this article (in Japanese).
- Set
$GYAZO_ACCESS_TOKEN
:
export GYAZO_ACCESS_TOKEN=<access token>
You can run pdf2sb also via Docker:
FILE=<your pdf file>; docker run --env GYAZO_ACCESS_TOKEN=$GYAZO_ACCESS_TOKEN -v $(readlink -f $FILE):/app/${FILE##*/} reiyw/pdf2sb ${FILE##*/}
# or
docker run --env GYAZO_ACCESS_TOKEN=$GYAZO_ACCESS_TOKEN reiyw/pdf2sb <URL>