Skip to content

pysign_ec is a simple and efficient Python solution for electronically signing PDF documents using digital certificates. It automates the signing process, ensuring the authenticity and integrity of your documents, making it perfect for integration into applications or business workflows.

Notifications You must be signed in to change notification settings

DIOR27/pysign_ec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Signature Script

This script allows you to add a digital signature to a PDF file like FirmaEC does. It also provides an option to add a watermark to the PDF.

Prerequisites

Before running the script, make sure you have the following installed:

  • Python 3.x
  • Required Python libraries (listed below)

Installation

  1. Clone or download the repository:
    git clone https://github.com/DIOR27/pysign_ec.git
    cd pysign_ec
  2. Install the required Python libraries:
    pip install -r requirements.txt

Usage

Run the following command to add a digital signature to the PDF file (you must to provide the path to the PDF file, the path to the .p12 file, the password for the .p12 file, and the text to search in the PDF for placing the signature):

python3 main.py path/to/pdf path/to/p12_file "password_for_p12_file" "text_to_search"

Output

The script will generate a new PDF file with the digital signature added showing the followin output:

Signed PDF saved at 'Path/to/file.pdf'.

Screenshots

result

watermark

About

pysign_ec is a simple and efficient Python solution for electronically signing PDF documents using digital certificates. It automates the signing process, ensuring the authenticity and integrity of your documents, making it perfect for integration into applications or business workflows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages