Skip to content

Web application that allows users to add stamps or signatures to PDF files directly from their browsers

License

Notifications You must be signed in to change notification settings

bfritscher/pdf-stamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Stamp

PDF Stamp is a web application that allows users to add stamps or signatures to PDF files directly from their browsers. With this tool, you can upload a PDF, create custom stamps or signatures, and apply them to specific pages within the document. The entire process is handled locally on your device, ensuring privacy and security.

Demo: https://bfritscher.github.io/pdf-stamp

Features

  • PDF Loading: Load PDF files either from your local storage or by URL.
  • Create Stamps: Create custom stamps via drawing or image upload.
  • Stamp Management: Add, remove, and adjust the opacity and position of stamps.
  • Page Navigation: Navigate through PDF pages to refine and adjust the placement of stamps.
  • Download Stamped PDF: Download the PDF with the added stamps.

Tech Stack

  • HTML/CSS: For the structure and styling of the web application.
  • JavaScript: For interactivity and PDF manipulation.
  • Libraries:

Getting Started

Prerequisites

Ensure you have a modern web browser that supports HTML5 and JavaScript ES6.

How It Works

  1. Load PDF: Select a PDF file from your local system or input a URL to load a remote PDF.
  2. Add Stamps:
    • Click on the Add button to add a new stamp.
    • You can draw your signature on a canvas or upload an image to use as a stamp.
  3. Manage Stamps:
    • Drag and resize the stamp to fit the desired position on the PDF.
    • Adjust the opacity using the slider.
    • Set the repeat interval for the stamp to appear on multiple pages.
  4. Navigate Pages: Use the Prev and Next buttons to navigate between pages.
  5. Download PDF: Click the Download tab once you're satisfied with your stamps.

Local Storage

Stamps are stored in the browser's localStorage under the key pdf-stamps-srcStamps. This allows you to reuse them even after refreshing the page.

Known Issues

  • Some PDF files with special formatting may not render stamps correctly.
  • Signature pad and image upload functionality might behave differently across browsers.

Contributing

Feel free to fork this repository and contribute by submitting pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

Acknowledgements

  • Special thanks to the developers of the libraries used: pdf-lib, fabric.js, signature_pad, and pdfjs-dist.

For any additional information, concerns or bug reports, please create an issue in the repository.


Thank you for using PDF Stamp! Enjoy seamless stamping and signing of your PDFs!

If you have any questions or need further help, feel free to reach out.


Disclaimer: This README file was mostly generated by an AI.

About

Web application that allows users to add stamps or signatures to PDF files directly from their browsers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published