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
- Host: GitHub
- URL: https://github.com/katsick/pdftk-as-a-service
- Owner: KatSick
- License: mit
- Created: 2019-06-19T19:34:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-20T13:56:57.000Z (almost 5 years ago)
- Last Synced: 2025-04-14T06:35:24.012Z (about 1 year ago)
- Topics: docker, golang, golang-server, http-server, pdf-form, pdf-forms, pdftk
- Language: Go
- Size: 6.84 KB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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