Name

phpprintipp — A command line interface to talk to IPP print servers

Synopsis

phpprintipp [--abanner sheet] [--bbanner sheet] [--copies #] [--file file] [-h] [--help] [--host hostname] [--job uri] [--job-attributes] [--logfile path] [--mediatype mime-type] [--nohttpX] [--noippX] [-p] [--password password] [--paths "path,path,path,path"] [--port #] [--printer uri] [--printer-attributes] [--server rcfile] [--sides token] [--tempdir dir] [--user username]

OPTIONS

phpprintipp has following options:

--abanner banner

the banner sheet to print after job

--bbanner banner

the banner sheet to print before job

-c --credits

Display credits and licence then exit.

--copies number

number of document copies to print

--file /path/to/file_to_print

path, relative or absolute, to a printable file

Note

Will print the file name if it is unreadable

-h --help

print help

--host "hostname"

resolvable hostname/FQDN, or ipV4/V6 IP

--job "job uri"

get job attributes for this job

--job-attributes

display the printed job attributes

--logfile /path/to/log/file

default to /dev/null

--mediatype "application/octet-stream"

the mime media type of the file provided to your printer (default to application/octet-stream). most printers allows only that type and "text/plain".

--nohttpX

do not handle http exceptions

--noippX

do not handle ipp exceptions

-p

print (from pipe or standard input), overridden by --file

--password "password"

the printer password, if needed

--paths "/,/admin,/printers,/jobs"

comma separed list of the four destinations as above (the cups default)

For example, --path "/P1,/P1,/lpt1,/P1"

--port "port number"

default to IPP standard port (631)

--printer "printer uri"

mandatory if not set in rcfile (IPP standard...)

Tip

more often the "printer queue" name

--printer-attributes

get printer attributes

--server "rcfile"

server: load options from "rcfile" $HOME/.printipp/rcfile if not found $ETC/printipp/rcfile, then /etc/printipp/rcfile

--sides (1|2|2CE)

1 for one-sided (default), 2 for two-sided, 2CE for two-sided on short edge

--tempdir /path/to/temp

default is /tmp

Warning

You need a valid directory path, as file/string is streamed to a temp-file, then streamed from the last (allow large files printing, to pass round the PHP "set_memory_limit" directive

--user "username"

your user name, from printer point of view

SEE ALSO

PrintIPP usage

foomatic-rip (1)

gm (1)