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.
- Simple one-click UI
- Settings file for customization
- Runs independent on Win,Mac & Linux
- Console support for advanced users
π¦ MyPDFWatermark.zip 13,13 MB
π‘ Requires an installed Java JRE.
Runs on Windows, Linux & Mac.
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.
- UI Drag & Drop
Run the app without any arguments:
Windows users can use the provided
java -jar MyWatermark.jar my_document.pdf
MyWatermark.exe
executable. Then move a file to the drop area. - UI Open File Dialog Just klick on the file drop area to select a PDF file.
- Move A File onto the APP Shortcut Drag and move a PDF file onto the app shortcut.
- 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
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
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
)
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
.
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.
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:
- jPdf Tweak Affero GNU Public License
- IText 2.0 MPL and
MPL.
The original version is written by Bruno Lowagie. - BouncyCastle MIT Like
Copyright Β©2000-2023 The Legion Of The Bouncy Castle - Commons Lang 3 Apache License
- FileDrop - Robert Harder - Public Domain