Skip to content

torfs-ict/docker-pdftk-webservice

Repository files navigation

docker-pdftk-webservice

Docker image to run PDFtk as a webservice.

If you prefer a pre-build version it is available from hub.docker.com just do a regular pull

$ docker pull torfsict/docker-pdftk-webservice

Build

$ docker build -t docker-pdftk-webservice .

Run

Using a locally built version:

$ docker run -d -p 80 --name pdftk docker-pdftk-webservice

Or if you use the pre-built version:

$ docker run -d -p 80 --name pdftk torfsict/docker-pdftk-webservice

Usage

Note: at the moment the only supported action is merging PDF files. Other actions will be added on request.

Merge

Post the files you want to merge to the server and get the merged file in return.

$ curl -F files[]=@file1.pdf -F files[]=@file2.pdf http://localhost/merge > merged.pdf

Ping

Check the status, will return the uptime of the service.

returns

{
  pong: 18.849
}

License

MIT

Releases

No releases published

Packages

No packages published

Languages