Skip to content

apurvmishra99/pdf-to-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

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 <!-- --->

Releases

No releases published

Packages

No packages published

Languages