Case Study & Technical Details # PDF Signer — Online PDF Signing Tool A web-based PDF signing platform built with **Symfony 7.4**, allowing users to add electronic signatures to PDF documents directly from their browser. The application provides an interactive editing experience with multiple signature methods, real-time positioning and resizing, and server-side PDF processing. ## Objectives & Challenges - Build an intuitive PDF signing tool without requiring users to create an account. - Support multiple signature methods while providing a consistent editing experience. - Implement real-time signature positioning and resizing directly on PDF previews. - Preserve the integrity and existing structure of PDF documents during the signing process. - Integrate specialized PDF processing and digital signature engines through Symfony and Python. ## Tech Stack - **Backend**: Symfony 7.4, PHP 8.2+ - **Frontend**: Twig, JavaScript, TailwindCSS - **PDF Rendering**: PDF.js - **PDF Processing**: pyHanko, FPDI, FPDF - **Additional Tools**: Python 3, Symfony CLI ## Key Features 1. **Multiple Signature Methods**: Create signatures by drawing on a canvas, uploading an image (PNG, JPG, JPEG), or entering text using handwriting-style fonts. 2. **Interactive PDF Preview**: Render PDF documents directly in the browser using PDF.js, providing a visual workspace for signature editing. 3. **Drag-and-Resize Signature Editor**: Freely position and resize signatures on PDF pages with live preview updates. 4. **Multiple Signatures Management**: Add, select, reposition, resize and remove multiple signatures within the same document. 5. **PAdES Digital Signature Integration**: Use pyHanko to generate PAdES signatures with incremental PDF updates, preserving the original document structure, existing signatures, forms and metadata. 6. **Alternative PDF Processing Engine**: Include a classic FPDI-based processing engine for an alternative PDF generation workflow. 7. **Privacy-Oriented Processing**: No user accounts or document history. Uploaded files are temporarily stored and automatically cleaned up after successful processing and download. 8. **Public Landing Page**: Dedicated presentation page explaining the tool and guiding visitors toward the PDF signing workflow. ## Technical Highlights **Hybrid PHP and Python Architecture**: Symfony handles application workflows and orchestrates PDF processing, while pyHanko provides the digital signature engine through a Python integration. **Incremental PDF Signing**: Unlike conventional PDF reconstruction, the default pyHanko engine applies incremental updates, helping preserve the original PDF content and existing document structures. ```bash # Install the PDF signing engine python3 -m venv .venv .venv/bin/pip install "pyhanko[image-support,opentype]" # Configure the Python interpreter PDF_SIGN_PYTHON=/path/to/.venv/bin/python ``` **Security & Trust Considerations**: The application supports PKCS#12 certificates and optional RFC 3161 timestamping. A trusted certificate issued by a qualified trust service provider is required for recognized legal trust levels; self-signed certificates are not automatically trusted by PDF readers. Loading project details... All Projects Visit Live Project