module
Version:
v0.0.0-...-4042397
Opens a new window with list of versions in this module.
Published: Feb 15, 2024
License: MIT
Opens a new window with license information.
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.
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
- Clone this repo.
$ go mod download
$ cp ./config/config.example.yml ./config/config.yml
- Fill out your config.yml.
$ go run ./cmd/print-server/main.go
Directories
¶
Click to show internal directories.
Click to hide internal directories.