Skip to main content

A small script to make your pdfs seem like scanned

Project description

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf-to-scan-0.0.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf_to_scan-0.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pdf-to-scan-0.0.3.tar.gz.

File metadata

  • Download URL: pdf-to-scan-0.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pdf-to-scan-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1d99d8f1b4d0e222f1f3891580d419865e7e7881d72334ce42e1c8164db52bab
MD5 3e0e33abb45559da3b2204985c6a2eaa
BLAKE2b-256 984f2fce661ef7c1280988fb87ed76625a1e15a3e9aca04898e95f0f95301e0d

See more details on using hashes here.

File details

Details for the file pdf_to_scan-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pdf_to_scan-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pdf_to_scan-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 52b554eb729675a59c38a70e4690081a6b8598b2168e323c3c7f4b1ddb981937
MD5 3da5795c6eed0f490ba5a07dbe5eef24
BLAKE2b-256 ba1110f79fbb093d02b002f3d042999677ead0ff08480d7243d5a576326b8857

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page