An open API service indexing awesome lists of open source software.

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

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
```