Learn R Programming

googlePrintr (version 0.0.1)

gcp_submit: Submit print job to printer

Description

Submit print job to printer

Usage

gcp_submit(printerid, title, ticket = jsonlite::toJSON(list(version =
  jsonlite::unbox("1.0"), print = c()), auto_unbox = FALSE), content,
  contentType, tag = NULL)

Arguments

printerid

The ID of the printer

title

Title of print job

ticket

Print ticket, see notes

content

Document to print, see notes

contentType

MIME type of document to print

tag

Tags to add to print job

Examples

Run this code
# NOT RUN {
printer <- gcp_search("myPrinter")

gcp_submit(printer$id[1], 
           "New Title",
           content = 
             "<h1>Hello World</h1>",
           contentType = "text/html"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab