Code Monkey home page Code Monkey logo

scanyourpdf's Introduction

Welcome to ScanYourPDF!

This is my first open-source project so please, feel free to comment on anything that you think requires to be overwritten! The idea behind this software is to allow anyone to make their PDF look like it was scanned. Project is currently running version 1.0 on www.scanyourpdf.com

We were featured in HN for more than 12 hours on the front page! Thanks to everyone that commented and provided feedback on the project. We are currently working on implementing all of them. Feel free to drop of any comments!

HN Post

Dependencies

Project requires ImageMagick and GhostScript. This will do the trick on Ubuntu:

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

This should work on macOS with Homebrew:

brew install ghostscript
brew install imagemagick

Then the usual virtualenv dance (this within your software directory):

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

On Ubuntu, PDF support in ImageMagick is disabled by default for security reasons. To "fix" this, change the line in /etc/ImageMagick-6/policy.xml from this:

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

To this:

<policy domain="coder" rights="read|write" pattern="PDF" />

Be warned that this may be insecure; use at your own risk.

Gist

The document scanned_pdf.sh is a simple Gist with the two commands required to make the PDF look scanned in case you would like to run this program locally. To execute you need to make sure the dependencies have been correctly installed and then run:

chmod +x ./scanned_pdf.sh

This makes the script executable.

Usage:

./scanned_pdf.sh <filename_to_convert.pdf>

Example:

./scanned_pdf.sh scan.pdf

Docker

Run the script from a Docker container

docker-compose build
docker-compose run --rm app ./scanned_pdf.sh -o output.pdf input.pdf

Pending

  • Contact form for people to send any PDF that may have failed the conversion process to check
  • Make a CONTRIBUTING.md file for people to help

Pull request

  • I think everything is working for people to start contributing. Any questions or comments please feel free to send me an email at [email protected]

scanyourpdf's People

Contributors

baicunko avatar stefins avatar dependabot[bot] avatar lewiscollard avatar cyberplant avatar spacegaier avatar smoreilly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.