[bug-pcl] problem about CID Command

Henry Stiles henry.stiles at artifex.com
Tue Jul 12 08:10:36 PDT 2005


Yang Xin writes:
 > Hi:
 > 
 >   One problem when using "Configure Image Data (CID) Command", here are the
 > sequences of my pcl commands about an image printing:
 > 
 >     ESC *r0F                          //presentation
 >     ESC *t700R                      //resolution
 >     ESC *v6W<0x00><0x30><0x00><0x08><0x08><0x08>    //CID
 > in this command, I have set "Direct by Pixel" PEM and every 8 bits represent
 > one value.
 >     ESC *r1A                         //start raster graphic
 >     ...IMAGE DATA
 > 
 >   The IMAGE DATA here, is managed as: first 8 bits represent R value of
 > the 1st RGB, then 8 bits represent G of the 1st RGB, then 8 bits
 > represent B of 1st; the next 24 bits represent the 2nd RGB value. But
 > problem comes, the pcl program won't recognizes the commands right, it
 > always treats the IMAGE DATA as 1 bit represent a color of white or
 > black, then the image ouput will be 24 time longer of the original one.
 > It doesn't interpret every 24 bits into one color, but 24 mono colors.
 > 
 >   My ghostPCL's version is 1.38, and OS is Linux 2.4.21, the same
 > problem occurs when printing in HP LaserJet Printer 2200.
 > 

That would indicate this is not a ghostpcl problem.  Since we provide
you with the source code you can create a debug build and use a
debugger to figure out what is happening.  Putting a breakpoint on
pcl/pccid.c:check_cid_hdr() and stepping through the code should tell
you everything you need to know.  Use the source young Skywalker!!!

 >   Thanks in advance!
 > 
 > Yang Xin
 > _______________________________________________
 > bug-pcl mailing list
 > bug-pcl at ghostscript.com
 > http://www.ghostscript.com/mailman/listinfo/bug-pcl

-- 
./Henry
Artifex Software


More information about the bug-pcl mailing list