https://github.com/callassoftware/docker-snippets
some docker related snippets and howtos for callas pdfToolbox-cli
https://github.com/callassoftware/docker-snippets
docker linux pdf shell
Last synced: about 2 months ago
JSON representation
some docker related snippets and howtos for callas pdfToolbox-cli
- Host: GitHub
- URL: https://github.com/callassoftware/docker-snippets
- Owner: callassoftware
- Created: 2024-12-03T12:24:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-04T13:55:10.000Z (about 2 months ago)
- Last Synced: 2026-05-04T15:40:52.524Z (about 2 months ago)
- Topics: docker, linux, pdf, shell
- Language: Shell
- Homepage: https://hub.docker.com/repository/docker/callassoftware/pdftoolbox-cli
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-snippets
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
## ready to use docker images on Dockerhub
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=
```
## howto create your own docker images
assumption: there is a linux image build machine with the needed tools already installed (such as git, wget, tar, docker etc.)
### download pdfToolbox locally
```
git clone https://github.com/callassoftware/docker-snippets.git
cd docker-snippets
wget https://www.callassoftware.com/extranet/callas_pdfToolboxCLIandServer/callas_pdfToolboxCLI_x64_Linux_17-0-682.tar.gz
tar zxvpf callas_pdfToolboxCLI_x64_Linux_17-0-682.tar.gz
mv callas_pdfToolboxCLI_x64_Linux_17-0-682 callas_pdfToolboxCLI_Linux_17-0-682
rm callas_pdfToolboxCLI_Linux_17-0-682/lib/libstdc++.so.6 # only needed for older debian distros (but not for debian trixie)
```
### optional: reduce resulting image size
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_17-0-682
bash ../reduce-essential.sh
cd ..
```
### build the image
```
docker build -t callassoftware/pdftoolbox-cli:v17-0-682 -f Dockerfile-debian .
```
## ... try it out ...
```
docker run --rm -ti callassoftware/pdftoolbox-cli:v17-0-682 ./pdfToolbox --version
```