Skip to content

Instantly share code, notes, and snippets.

@dhicks
Created July 25, 2019 21:48
Show Gist options
  • Save dhicks/b2683f7f7ed46e3934e908b4110dcf64 to your computer and use it in GitHub Desktop.
Save dhicks/b2683f7f7ed46e3934e908b4110dcf64 to your computer and use it in GitHub Desktop.
Just a little Bash wrapper around a Ghostscript call to fix an encoding error when Calibre converts epub to pdf
#!/bin/bash
## Just a little Bash wrapper for a Ghostscript call
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$2" "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment