Skip to content

Instantly share code, notes, and snippets.

@tskinn
tskinn / keybase.md
Created September 22, 2020 15:22
keybase.md

Keybase proof

I hereby claim:

  • I am tskinn on github.
  • I am tskinn (https://keybase.io/tskinn) on keybase.
  • I have a public key ASAOGtbIanHiv4Oz-8Wm05BoHAxK97XXaY-WKmtTt8xkTQo

To claim this, I am signing this object:

@tskinn
tskinn / README.md
Created August 5, 2020 04:43 — forked from sterlingwes/README.md
Converting a scanned PDF to EPUB ebook (or other format)

Caveat

You're not going to get a beautiful EPUB out the other end - if that's what you're looking for, expect to do some manual clean-up work yourself.

Basic order of operations:

  • Convert your PDF to an OCR-friendly format
  • OCR that shit into plaintext
  • Convert that plaintext into your format of choice (in this case, an EPUB)
#!/bin/bash
REVERSE="\x1b[7m"
RESET="\x1b[m"
if [ "$1" == "-v" ]; then
SPLIT=1
shift
fi

Keybase proof

I hereby claim:

  • I am tskinn on github.
  • I am tskinner (https://keybase.io/tskinner) on keybase.
  • I have a public key whose fingerprint is 3251 F078 DE46 92D2 59C4 FBC8 B682 3288 4D6E 31F7

To claim this, I am signing this object: