<print file = Path printer = Printer name />
Sends the file specified by attribute file
(typically a PostScript® file) to the printer specified by attribute printer
.
Example:
<command name="docb.toPSPrinter"> <process> <subProcess name="docb.toPS" parameter='"%0" "%1" "%2" "%3"' /> <print file="__doc.%0" printer="%4" /> </process> </command>
The syntax of printer name
is:
printer_name
[ '->'format
]?
Examples:
lp22 Sales Departement->ps lp23->text/plain; charset=UTF-8
The optional format
part specifies the mime type of the document to be printed. The following short names are also supported: ps
(application/postscript
), pdf
(application/pdf
), pcl
(application/vnd.hp-PCL
).
When this format
part is not specified, the print
element uses the extension of the filename specified in attribute file
.
Command selectPrinter allows to choose a printer using a specialized dialog box and returns a ready-to-use printer name for the print
element of a process
command. Example:
<command name="docb.printPS"> <macro> <sequence> <command name="selectPrinter" parameter="%0" /> <command name="docb.toPSPrinter" parameter='"%0" "%1" "%2" "%3" "%_"'/> </sequence> </macro> </command>