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 month ago
.idea Initial commit 10 months ago
cdd Initial commit 10 months ago
cmd Initial commit 10 months ago
cups Initial commit 10 months ago
frontend add cards to filelist 10 months ago
lib Initial commit 10 months ago
log Initial commit 10 months ago
printserver Initial commit 10 months ago
testfiles Initial commit 10 months ago
README.md Add README 10 months ago
go.mod Initial commit 10 months ago
go.sum Initial commit 10 months ago
swagger.yaml Initial commit 10 months 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