Skip to main content

Upload PDF file to Gyazo as images then convert Scrapbox format

Project description

pdf2sb

PyPI PyPI - Python Version PyPI - License

Upload PDF file to Gyazo as images then convert Scrapbox format.

Usage

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:

Image from Gyazo

Installation

  • poppler is required to generate images from a PDF file. Install poppler via Homebrew:
brew install poppler
  • Install pdf2sb:
pip install pdf2sb
export GYAZO_ACCESS_TOKEN=<access token>

Running via Docker

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##*/} ghcr.io/reiyw/pdf2sb ${FILE##*/}
# or
docker run --env GYAZO_ACCESS_TOKEN=$GYAZO_ACCESS_TOKEN ghcr.io/reiyw/pdf2sb <URL>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf2sb-0.3.7.tar.gz (4.7 kB view hashes)

Uploaded source

Built Distribution

pdf2sb-0.3.7-py3-none-any.whl (4.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page