Skip to content

Web Printing API server written in GO

License

Notifications You must be signed in to change notification settings

Nico0302/go-print-server

Repository files navigation

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:https://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

About

Web Printing API server written in GO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published