$ sudo apt install git default-jdk-headless ant libcommons-lang3-java libbcprov-java
$ git clone https://gitlab.com/pdftk-java/pdftk.git
$ cd pdftk
$ mkdir lib
$ ln -st lib /usr/share/java/{commons-lang3,bcprov}.jar
$ ant jar
$ java -jar build/jar/pdftk.jar --help
$ cp ~/pdftk/build/jar/pdftk.jar /usr/share/java
#!/bin/bash
java -jar /usr/share/java/pdftk.jar $@
# chmod +x /usr/local/bin/pdftk
$ pdftk -version pdftk port to java 3.0.8 a Handy Tool for Manipulating PDF Documents Copyright (c) 2017-2018 Marc Vinyals - https://gitlab.com/pdftk-java/pdftk Copyright (c) 2003-2013 Steward and Lee, LLC. pdftk includes a modified version of the iText library. Copyright (c) 1999-2009 Bruno Lowagie, Paulo Soares, et al. This is free software; see the source code for copying conditions. There is NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.よか