Use Apache PDFBox as CLI tool with Docker to work with PDF documents. The currently shipped PDFBox version is 3.0.1.
# clone repo
git clone
cd pdfbox-docker
# build image
docker build -t tertek/pdfbox .
# show help by running the container
docker run -it -v $PWD:/home tertek/pdfbox
The directories /pdf
and /output
contain some test files to understand how PDF form fields work together with (X)FDF.