Metadata-Version: 2.1
Name: pdf2sb
Version: 0.2.0
Summary: Upload PDF file to Gyazo as images then convert Scrapbox format
Home-page: https://github.com/reiyw/pdf2sb
License: MIT
Author: reiyw
Author-email: reiyw.setuve@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: click (>=7.0,<8.0)
Requires-Dist: pdf2image (>=1.4,<2.0)
Requires-Dist: pillow (>=5.4,<6.0)
Requires-Dist: python-gyazo (>=1.1,<2.0)
Requires-Dist: tqdm (>=4.30,<5.0)
Project-URL: Repository, https://github.com/reiyw/pdf2sb
Description-Content-Type: text/markdown

# pdf2sb

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:

```sh
pdf2sb ~/Downloads/presentation.pdf | pbcopy
```

Paste copied text to a Scrapbox page:

[![Image from Gyazo](https://i.gyazo.com/0417c51246c401de8725393d7c78f715.png)](https://gyazo.com/0417c51246c401de8725393d7c78f715)

## Installation

```sh
pip install pdf2sb
```

Get Gyazo access token from [here](https://gyazo.com/oauth/applications).

Set `$GYAZO_ACCESS_TOKEN`:

```sh
export GYAZO_ACCESS_TOKEN=<access token>
```

