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

https://github.com/katsick/pdftk-as-a-service

Golang Gin with PDFTK as REST (HTTP) web-service with docker
https://github.com/katsick/pdftk-as-a-service

docker golang golang-server http-server pdf-form pdf-forms pdftk

Last synced: about 1 year ago
JSON representation

Golang Gin with PDFTK as REST (HTTP) web-service with docker

Awesome Lists containing this project

README

          

# PDFTK as a service

## Image

`docker pull katsick/pdftkgolangservice:1.1.0`

## Hot to use

Invoke HTTP request to the service. Example below:

```
POST /fill-pdf HTTP/1.1
Content-Type: multipart/form-data;

--1
Content-Disposition: form-data; name="file"; filename="form.pdf"
Content-Type: application/pdf

--1

--2
Content-Disposition: form-data; name="json"
{"field1":"hello","field2":"world"}
--2
```

## Development

```
docker-compose up --build
```

Use Postman or Paw to invoke requests agains HTTP server