Giter Club home page Giter Club logo

pdf-bulk-stamper's Introduction

pdf-bulk-stamper

Script for bulk stamping stamp image on multi-page PDF file.

NOTE: I don't guarantee anything. Also, DON'T USE it for important documents.

Features

  • Bulk stamping to multi-page PDF file.

  • Apply noise to the output

  • Apply grayscale to the output

  • Angle staggered when stamping each page

Usage

1. Create stamp image (stamp.pdf)

  1. Duplicate the PDF file (e.g. source.pdf) you want to stamp, to stamp.pdf.

  2. Open the duplicated file (stamp.pdf) on PDF editing software (e.g. Inkscape).

  3. Paste the stamp image (recommends transparent PNG) to the place you want to stamp.

  4. Delete the objects other than the stamp image.
    Now, the background of the PDF file should be white. Also, there is only the stamp image.

  5. Overwrite save the PDF file. This completes the stamp PDF file.

2. Execute command

Execute on Docker (Recommended)

Requirements: Docker

Print help:

$ sudo docker run -it mugifly/pdf-bulk-stamper stamper.sh

Example command:

$ sudo docker run -it -v $(pwd):/stamper/ mugifly/pdf-bulk-stamper stamper.sh --noise 1 --grayscale --staggered source.pdf stamp.pdf output.pdf

Please execute the above command, in the directory containing the source.pdf and stamp.pdf.

Execute on Standalone

Requirements: Bash, Image Magick (convert command), PDFtk (pdftk command)

Print help:

$ bash stamper.sh

Example command:

$ bash stamper.sh --noise 1 --grayscale --staggered source.pdf stamp.pdf outout.pdf

pdf-bulk-stamper's People

Contributors

mugifly avatar

Stargazers

 avatar

Watchers

 avatar  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.