Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apurvmishra99/pdf-to-scan
Make your PDFs look like they were scanned
https://github.com/apurvmishra99/pdf-to-scan
ghostscript imagemagick pdfs scan scanned-documents
Last synced: 10 days ago
JSON representation
Make your PDFs look like they were scanned
- Host: GitHub
- URL: https://github.com/apurvmishra99/pdf-to-scan
- Owner: apurvmishra99
- License: mit
- Created: 2020-05-13T21:04:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T15:18:52.000Z (over 4 years ago)
- Last Synced: 2024-10-01T23:05:00.356Z (about 1 month ago)
- Topics: ghostscript, imagemagick, pdfs, scan, scanned-documents
- Language: Python
- Size: 9.77 KB
- Stars: 82
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PDFtoScan
PDFtoScan uses the idea implemented in [baicunko's](https://github.com/baicunko/scanyourpdf) website to make your PDFs look like they were scanned in a CLI-based app.
## Installation
```console
$ pip install pdf-to-scan
```## Usage
```console
Usage: pdf-to-scan [OPTIONS] FILE_NAMEOptions:
--help Show this message and exit.
```## Example
```console
$ pdf-to-scan in.pdf
```## Dependencies
The script requires `ghostscript` and `imagemagick` to run.
These can be installed using,### For Ubuntu
```console
$ sudo apt-get install imagemagick
$ sudo apt-get install ghostscript
```### For macOS
```console
$ brew install imagemagick
$ brew install ghostscript
```### For Windows
Check out this [link](https://imagemagick.org/script/download.php) for ImageMagick, and
this [link](https://www.ghostscript.com/download/gsdnld.html) 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`
``
Using ``