Example project demonstrating the capabilities of PDFix SDK written in Java.
For more information please visit https://pdfix.net.
The example needs the PDFix SDK Java library net.pdfix.pdfixlib-<version>.jar in the lib/ folder.
The jar is not part of this repository and is not published to Maven Central.
It already contains the native libraries for all supported platforms.
- Check the SDK version in
pom.xml(<pdfixlib.version>). - Open the matching release on GitHub Releases
(e.g.
v9.3.0) and download the assetjava-net.pdfix.pdfixlib-<version>_<build>.jar.zip. - Unzip it and copy
net.pdfix.pdfixlib-<version>.jarintolib/:
mkdir -p lib
unzip java-net.pdfix.pdfixlib-9.3.0_*.jar.zip net.pdfix.pdfixlib-9.3.0.jar -d lib
mvn clean installs the jar from lib/ into the local Maven repository (maven-install-plugin),
so run it before the first build and after every SDK version change.
mvn clean
mvn compile
mvn exec:java -Dexec.mainClass="net.pdfix.App"
To run a single test, pass its name, for example AddTags or AddWatermark. All tests are executed if empty:
mvn exec:java -Dexec.mainClass="net.pdfix.App" -Dexec.args="--test AddTags"
Let us know and we’ll get back to you. Write us to support@pdfix.net or fill the contact form.