https://github.com/nico0302/go-print-server
Web Printing API server written in GO
https://github.com/nico0302/go-print-server
api golang ipp print
Last synced: about 1 year ago
JSON representation
Web Printing API server written in GO
- Host: GitHub
- URL: https://github.com/nico0302/go-print-server
- Owner: Nico0302
- License: mit
- Created: 2022-12-27T17:35:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-15T08:17:56.000Z (over 2 years ago)
- Last Synced: 2024-06-21T08:11:16.604Z (almost 2 years ago)
- Topics: api, golang, ipp, print
- Language: Go
- Homepage:
- Size: 130 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Web Printing API server written in Go
## Usage
This print server provides an API endpoint (optionally protected by basic auth) which enables users to print a PDF file from a given url.
```bash
curl -X POST http://localhost:8631/v1/print/url \
-u 'example:secret' \
-H 'Content-Type: application/json' \
-d '{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","preset":"example-preset"}'
```
## Setup
1. Clone this repo.
2. `$ go mod download`
3. `$ cp ./config/config.example.yml ./config/config.yml`
4. Fill out your _config.yml_.
5. `$ go run ./cmd/print-server/main.go`