On Tue, Jul 4, 2017 at 12:47 AM, Gernot Hassenpflug
Post by Gernot HassenpflugPost by Robert KrawitzAt present the only changes are the new printers and the added support
for the new media sizes; everything is otherwise identical to 5.2.13.
Thanks!
Post by Robert KrawitzI've merged these changes to the branch.
I'm going to add the instances of the Canon PIXMA G1000, G2000, G3000
and G4000 to printers.xml and NEWS tomorrow.
Hello Robert,
I've added what I had intended to. I've processed printjobs from the
TS PIXMA series also, so will add these too as experimental devices in
the next day or two if that is permissible.
I've noticed that recent printers use more XML before the printjob,
for instance something like the below (some printers have less, others
more).
In other words, (a) the XML is no longer fixed like it used to be up
to the printers added in 5.2.12, and (b) some printer-related commands
may be inserted as XML rather than in Canon's ESCP format (e.g., the
VendorCmd below). I've not got any printers to test, so for now the
code simply uses the existing fixed XML. However, as people get to
test the devices I'll be able to figure out which if any of the XML is
required for the printer to function.
XML after the printjob is unchanged.
<?xml version="1.0" encoding="utf-8" ?>
<cmd xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/"
xmlns:vcn="http://www.canon.com/ns/cmd/2008/07/canon/">
<ivec:contents>
<ivec:operation>StartJob</ivec:operation>
<ivec:param_set servicetype="print">
<ivec:jobID>00000001</ivec:jobID>
<ivec:bidi>0</ivec:bidi>
<ivec:job name><![CDATA[********]]></ivec:jobname>
<ivec:username><![CDATA[********]]></ivec:username>
<ivec:computername><![CDATA[*******]]></ivec:computername>
<ivec:job_description><![CDATA[*******]]></ivec:job_description>
<vcn:host_environment>windows</vcn:host_environment>
</ivec:param_set>
</ivec:contents>
</cmd>
<?xml version="1.0" encoding="utf-8" ?>
<cmd xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/">
<ivec:contents>
<ivec:operation>SetJobConfiguration</ivec:operation>
<ivec:param_set servicetype="print">
<ivec:jobID>00000001</ivec:jobID>
<ivec:datetime>20170704090140</ivec:datetime>
<ivec:mismatch_mode>none</ivec:mismatch_mode>
</ivec:param_set>
</ivec:contents>
</cmd>
<?xml version="1.0" encoding="utf-8" ?>
<cmd xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/"
xmlns:vcn="http://www.canon.com/ns/cmd/2008/07/canon/">
<ivec:contents>
<ivec:operation>VendorCmd</ivec:operation>
<ivec:param_set servicetype="print">
<vcn:ijoperation>ModeShift</vcn:ijoperation>
<vcn:ijmode>1</vcn:ijmode>
<ivec:jobID>00000001</ivec:jobID>
</ivec:param_set>
</ivec:contents>
</cmd>
Best regards,
Gernot Hassenpflug