Skip to content

Instantly share code, notes, and snippets.

@sahilarora535
Created August 3, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sahilarora535/4790c41601a184391c9352aec49a793f to your computer and use it in GitHub Desktop.
Save sahilarora535/4790c41601a184391c9352aec49a793f to your computer and use it in GitHub Desktop.
ipptoolfile for printing a PCLm file via an IPP printer
# Print a test page using print-job
{
# The name of the test...
NAME "Print file using Print-Job"
# The operation to use
OPERATION Print-Job
# Attributes, starting in the operation group...
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
ATTR name requesting-user-name $user
ATTR mimeMediaType document-format application/PCLm
GROUP job-attributes-tag
ATTR integer copies 1
FILE OUTpclm.pdf
# What statuses are OK?
STATUS successful-ok
STATUS successful-ok-ignored-or-substituted-attributes
# What attributes do we expect?
EXPECT job-id
EXPECT job-uri
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment