Skip to content

Add a watermark to your PDF in your browser. No accounts, no file retention, totally local and secure. GDPR compliant by design.

License

Notifications You must be signed in to change notification settings

ToritoIO/PDF-Protect

Repository files navigation

PDF Protect

A free, open-source web application for adding watermarks to PDF documents entirely in your browser. All processing happens locally on your device with no uploads, accounts, or data retention.

PDF Protect

Features

  • 100% Client-Side Processing - Your PDFs never leave your device
  • Drag & Drop Interface - Simple, intuitive file upload
  • Customizable Watermarks - Full control over text, styling, and positioning
  • Real-Time Preview - See changes instantly before downloading
  • Page Range Support - Apply watermarks to specific pages or ranges
  • GDPR Compliant - No data collection, tracking, or server communication
  • Open Source - Full transparency with publicly available code

Watermark Customization

  • Text Content - Add any custom text (up to 50 characters)
  • Fonts - Choose from Helvetica, Times New Roman, Courier, Arial, and more
  • Styling - Adjust size, color, and opacity
  • Positioning - Set rotation angle and precise X/Y offsets
  • Tiling - Option to repeat watermark across the page with custom spacing
  • Page Selection - Apply to all pages or specific page ranges (e.g., "1-5, 8, 10-12")

Quick Start

  1. Open the application in your web browser
  2. Drag and drop a PDF file or click to browse
  3. Customize your watermark settings
  4. Preview the result
  5. Download your watermarked PDF

Technical Details

  • Frontend Only - Pure HTML, CSS, and JavaScript
  • PDF Processing - Built with PDF-lib for client-side PDF manipulation
  • File Size Limit - 50 MB maximum
  • Browser Compatibility - Modern browsers with ES6+ support

Live Demo

Try it now: PDF Protect

Project Structure

├── index.html         # Main application interface
├── app.js             # Core JavaScript functionality
├── styles.css         # Application styling
├── site.webmanifest   # PWA manifest
└── favicon files      # App icons

Development

To run locally:

  1. Clone the repository:

    git clone https://github.com/ToritoIO/PDF-Protect.git
    cd PDF-Protect
  2. Serve the files using any HTTP server:

    # Using Python 3
    python3 -m http.server 8000
    
    # Using Node.js
    npx serve .
    
    # Using PHP
    php -S localhost:8000
  3. Open http://localhost:8000 in your browser

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is open source and available under the MIT License.

Links


Made with ❤️ for privacy-conscious PDF processing

About

Add a watermark to your PDF in your browser. No accounts, no file retention, totally local and secure. GDPR compliant by design.

Topics

Resources

License

Stars

Watchers

Forks