Skip to content

mad-penguins/cupsWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUPS Wrapper

Simple Go library for submitting documents for printing via CUPS.

Install

  • Go Modules (recommended):
    • Add require github.com/mad-penguins/cupsWrapper latest to your go.mod file.
  • Manual installation
    • Run go get -u github.com/mad-penguins/cupsWrapper command

Example

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)
   }
}

About

Simple Go library for submitting documents for printing via CUPS C API.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages