Skip to content

This is a tool that helps you to sign your pdf file. I found this problem when I needed to sign a pdf document. Online tools needed subscription. So, I decided to make a simple tool to sign pdf using python.

Notifications You must be signed in to change notification settings

HordesOfGhost/sign-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


sign-pdf

This application allows you to sign PDF documents with an image of your signature. I found this problem when I needed to sign a pdf document. Online tools needed subscription. So, I decided to make a simple tool to sign pdf using python.

Prerequisites

Ensure you have conda installed on your system.

Installation

  1. Create a Conda Environment

    conda create --name sign-pdf python=3.8
  2. Activate the Environment

    conda activate sign-pdf
  3. Install Dependencies

    Make sure you have a requirements.txt file in the root directory of your project. Install the required Python packages:

    pip install -r requirements.txt

Running the Application

To sign a PDF, run the following command:

python app.py --pdf path/to/your_pdf.pdf --sign path/to/your_sign(.jpg/.png) --output path/to/your_signed_pdf.pdf

Command Line Arguments

  • --pdf: Path to the PDF file that you want to sign.
  • --sign: Path to the image file of your signature.
  • --output: Path where the signed PDF will be saved.

Example

Here's an example command to sign a PDF:

python app.py --pdf documents/sample.pdf --sign images/signature.png --output signed_documents/signed_sample.pdf

Usage Instructions

After running the application, a window will appear allowing you to draw the rectangular area where the signature will be placed. Follow these steps:

  1. Draw the rectangular sign area.
  2. Press a to add the signature after each rectangular box drawn.
  3. Press s to save the signed PDF.
  4. If you need to retry, press r.
    [ P.S. you can skip a pdf page without drawing just by pressing q.] ![Drawing Rectangular Sign Area](ss.png)

About

This is a tool that helps you to sign your pdf file. I found this problem when I needed to sign a pdf document. Online tools needed subscription. So, I decided to make a simple tool to sign pdf using python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published