Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFtoScan

PDFtoScan uses the idea implemented in baicunko's website to make your PDFs look like they were scanned in a CLI-based app.

Installation

$ pip install pdf-to-scan

Usage

Usage: pdf-to-scan [OPTIONS] FILE_NAME

Options:
  --help  Show this message and exit.

Example

$ pdf-to-scan in.pdf

Dependencies

The script requires ghostscript and imagemagick to run. These can be installed using,

For Ubuntu

$ sudo apt-get install imagemagick
$ sudo apt-get install ghostscript

For macOS

$ brew install imagemagick
$ brew install ghostscript

For Windows

Check out this link for ImageMagick, and this link for ghostscript.

PDF support in ImageMagick might be disabled be default on your os/distro. To fix this, comment out this line in /etc/ImageMagick-6/policy.xml

<policy domain="coder" rights="none" pattern="PDF" />

Using <!-- --->

About

Make your PDFs look like they were scanned

Topics

Resources

Stars

86 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages