Skip to main content

Utility for adding signatures images to PDF documents

Project description

A quick script to append signatures to PDFs, because I couldn’t find anything that worked well for the purpose under Linux.

There is no gui yet.

Installation

pip install signpdf

Usage

Sign the first page of “contract.pdf” with the signature “sig.png”:

signpdf contract.pdf sig.png –coords 1x100x100x150x40

Coordinates format is: <pagenum>x<x-coord>x<y-coord>x<width>x<height>.
  • <pagenum> the page number, count starts at 1.

  • <x-coord> horizontal distance from bottom-left corner in PDF units (1/72 inch).

  • <y-coord> vertical distance from bottom-left corner in PDF units (1/72 inch).

  • <width> width of signature in PDF units (1/72 inch).

  • <height> height of signature in PDF units (1/72 inch)

Other options:

  • --date Append a date to the right of the signature.

  • --output Destination filename. Default is to append _signed to the incoming PDF name.

For more, run signpdf --help.

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

signpdf-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Supported by

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