Skip to content

TobseF/My-PDF-Watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

My PDF Watermark

Simple app which adds a background layer to a PDF.
The background is loaded from a second PDF file.
The converted PDF is saved as new file.
Original files won't be overwritten.

screenshot

⭐ Features

  • Simple one-click UI
  • Settings file for customization
  • Runs independent on Win,Mac & Linux
  • Console support for advanced users

πŸ’Ώ Download

πŸ“¦ MyPDFWatermark.zip 13,13 MB

πŸ’‘ Requires an installed Java JRE.
Runs on Windows, Linux & Mac.

πŸ’‘ Usage

To use the app, you need at least a Java 1.8 JRE. You can get it for any platform here.

There are several ways to add a watermark to a PDF.

  1. UI Drag & Drop Run the app without any arguments:
    java -jar MyWatermark.jar my_document.pdf
    Windows users can use the provided MyWatermark.exe executable. Then move a file to the drop area.
  2. UI Open File Dialog Just klick on the file drop area to select a PDF file.
  3. Move A File onto the APP Shortcut Drag and move a PDF file onto the app shortcut.
  4. Command Line Mode Run the app with command line and a path to a PDF file as argument:
    java -jar MyWatermark.jar path/my_document.pdf

πŸ›  Configuration

Change settings in the config.ini:

# Can be an absolute path to the save location.
# Can be emtpy or `same`, to save to the location of the input file.
# Can be `desktop` which points to `USER_HOME/Desktop`.
save_path = same

# Name of the watermark PDF file, relative to the app directory.
watermark_file = Watermark.pdf

# New PDF file suffix, which will be appended to the converted file.
new_file_suffix = _w

πŸš€ Start from Source

To start the app within your IDE start the included run configuration:

  • β–Ά PDFWatermark.xml

Alternatively you can start the app with the Gradle command:

gradle run

This will start the application main class: eu.tobse.tool.pdfwatermark.App.
(File: app/src/main/java/eu/tobse/tool/pdfwatermark/App.java)

πŸ”¨ Build Jar

To build a runnable jar with all dependencies, run the Gradle Shadow Plugin:

gradle shadowJar

The output file will be saved in: build/libs/app-all.jar.

πŸ—‚ Dependencies

All dependencies are included in the app\lib folder. No external maven or grade dependencies are needed. Gradle will link them automatically. If you want to build the project without Gradle, just add it as dependencies folder in your IDE.

Under the hood it baked by jPdf Tweak - Swiss Army Knife for PDF files which uses iText.

πŸ“œ MIT Licence

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.
For details check: LICENSE.md.
Please respect the licences of the included dependencies: