Giter Club home page Giter Club logo

signpdf's Introduction

signpdf

This fork:

Several improvements:

1) Direct clicking of PDF images

2) Specify page number to sign on multi-page PDFs

3) Add today's date to a second clicked location

4) Add some text to the clicked location instead of signature (example: printed full name)

5) Supports as many signatures or text adds as you want without restarting on a renamed file

5) Rename output file ... `_signed_XX.pdf`  where `XX` are your initials

6) Save your sig file location and your initials in a config file in your home dir. 

=======

A quick script to add signature images to PDFs, because I couldn't find anything that worked well for the purpose under Linux.

Pros: should work with most PDFs, and with signatures as PNG's or JPG's. It preserves the incoming PDF's text format (e.g. doesn't convert every page to images like some alternatives). Just click a preview of the desired page to indicate where your signature and date should go.

Cons: hard coded signature file size

Installation


Install with pip:

pip install signpdf

Or from git:

git clone https://github.com/yourcelf/signpdf
cd signpdf
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Usage


signpdf.py [-h] [--date] [--output [OUTPUT]] [--text] [--pageno PAGENO] pdf [signature]

positional arguments:
  pdf                The pdf file to annotate
  signature          (optional - you can hardcode your sig file) The signature file (png, jpg)

optional arguments:
  -h, --help         show this help message and exit
  --date             enable clicking a second location for adding signature date.
  --output [OUTPUT]  Output file. Defaults to input filename plus '_signed'
  --text             Instead of signature, you will be propted for text to insert
  --pageno PAGENO    Which page to apply the signature (default= 1).

signpdf's People

Contributors

blake5634 avatar yourcelf avatar martinruenz avatar liorchen 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.