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

https://github.com/torfs-ict/docker-pdftk-webservice

Docker image to run PDFtk as a webservice.
https://github.com/torfs-ict/docker-pdftk-webservice

docker docker-image pdf pdftk symfony webservice

Last synced: about 2 months ago
JSON representation

Docker image to run PDFtk as a webservice.

Awesome Lists containing this project

README

          

# 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](https://hub.docker.com/r/torfsict/docker-pdftk-webservice)
just do a regular pull

```bash
$ docker pull torfsict/docker-pdftk-webservice
```

## Build

```bash
$ docker build -t docker-pdftk-webservice .
```

## Run

Using a locally built version:

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

Or if you use the pre-built version:

```bash
$ 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.

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

```JavaScript
{
pong: 18.849
}
```

## License
[MIT](LICENSE)