The thing you always wanted a REST Api to print files to CUPS printers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Till Wegmüller 418f497ff7 Merge pull request 'Merge Frontend' (#1) from AlexFence/goprint:master into master 1 year ago
.idea Initial commit 1 year ago
cdd Initial commit 1 year ago
cmd Initial commit 1 year ago
cups Initial commit 1 year ago
frontend add cards to filelist 1 year ago
lib Initial commit 1 year ago
log Initial commit 1 year ago
printserver Initial commit 1 year ago
testfiles Initial commit 1 year ago
README.md Add README 1 year ago
go.mod Initial commit 1 year ago
go.sum Initial commit 1 year ago
swagger.yaml Initial commit 1 year ago

README.md

goprint print things to cups

This is the thing that everybody requested hacked together in about two hours.

A REST Api/Website/TCP Port to print files via CUPS

TODO

  • Website
  • TCP Listener

Requirements

  • cups + header files
  • running cups server

Install

git clone https://git.wegmueller.it/Toasterson/goprint
go build -o prtservd ./goprint/cmd/prtservd.go
./prtservd --listen ":3000"

Usage

curl http://localhost:3000/api/v1/printers

curl -X POST http://localhost:3000/api/v1/print/${printerName} -T goprint/testfiles/testFile.pdf