Simple Go library for submitting documents for printing via CUPS.
- Go Modules (recommended):
- Add
require github.com/mad-penguins/cupsWrapper latestto yourgo.modfile.
- Add
- Manual installation
- Run
go get -u github.com/mad-penguins/cupsWrappercommand
- Run
package main
import (
"fmt"
"github.com/mad-penguins/cupsWrapper"
)
func main() {
msg := cupsWrapper.CUPSSubmitDocument("/home/you/document.pdf", "MyDocumentDisplayName.pdf")
if msg != "ok" {
fmt.Println(msg)
}
}