some docker related snippets and howtos mainly for the pdfToolbox-cli
note: docker-snippets for other callas products (pdfaPilot, pdfChip) can be found inside the 'other' subdirectory
please see also our ready-to-use docker images on https://hub.docker.com/repository/docker/callassoftware/pdftoolbox-cli
docker pull callassoftware/pdftoolbox-cli
run preflight using the sample.kfpx/sample.pdf contained in the image
docker run --rm -ti callassoftware/pdftoolbox-cli ./pdfToolbox sample.kfpx sample.pdf -o=/tmp/output.pdf --licenseserver=<ip of a callas license server>
assumption: there is a linux image build machine with the needed tools already installed (such as git, wget, tar, docker etc.)
git clone https://github.com/callassoftware/docker-snippets.git
cd docker-snippets
wget https://www.callassoftware.com/extranet/callas_pdfToolboxCLIandServer/callas_pdfToolboxCLI_x64_Linux_16-2-671.tar.gz
tar zxvpf callas_pdfToolboxCLI_x64_Linux_16-2-671.tar.gz
mv callas_pdfToolboxCLI_x64_Linux_16-2-671 callas_pdfToolboxCLI_Linux_16-2-671
rm callas_pdfToolboxCLI_Linux_16-2-671/lib/libstdc++.so.6 # only needed for older debian distros (but not for debian trixie)
Before building the image, you can optionally reduce its size by removing pdfToolbox components that aren't needed for your specific use case. This allows you to create a smaller "essential" image.
cd callas_pdfToolboxCLI_Linux_16-2-671
bash ../reduce-essential.sh
cd ..
docker build -t callassoftware/pdftoolbox-cli:v16-2-671 -f Dockerfile-debian .
docker run --rm -ti callassoftware/pdftoolbox-cli:v16-2-671 ./pdfToolbox --version