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.
 
 
 
Alex Fence d526b2223c add cards to filelist 1 year ago
.idea Initial commit 2 years ago
cdd Initial commit 2 years ago
cmd Initial commit 2 years ago
cups Initial commit 2 years ago
frontend add cards to filelist 1 year ago
lib Initial commit 2 years ago
log Initial commit 2 years ago
printserver Initial commit 2 years ago
testfiles Initial commit 2 years ago
README.md Add README 2 years ago
go.mod Initial commit 2 years ago
go.sum Initial commit 2 years ago
swagger.yaml Initial commit 2 years 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