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.
- Host: GitHub
- URL: https://github.com/torfs-ict/docker-pdftk-webservice
- Owner: torfs-ict
- License: mit
- Created: 2018-09-29T08:41:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T12:31:11.000Z (over 7 years ago)
- Last Synced: 2025-09-21T00:40:53.794Z (9 months ago)
- Topics: docker, docker-image, pdf, pdftk, symfony, webservice
- Language: PHP
- Size: 3.32 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)