HP LaserJet P2035 / P2035n :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
HP LaserJet P2035 / P2035n print *.pbm problem.
Posted by: drogba2011 ()
Date: April 18, 2017 01:55AM

Hi

I use command "foo2zjs -z1 -p1 test.pbm > /dev/lp0" by HP 1020 printer,it's ok!
but HP P2035 printer doesn‘t work.

I see through the manual.pdf, "-z1" means HP1018 HP1020, but there is no HP P2035 on the media list.

Any one can tell me why.


Options: ReplyQuote
Re: HP LaserJet P2035 / P2035n print *.pbm problem.
Posted by: rickrich ()
Date: April 18, 2017 08:51AM

Try it without -z1.

This is what I got from doing it on Windows and P2035:
$ zjsdecode -p ~/testpage.prn
ZJS_MAGIC, 0x5a4a5a4a (JZJZ)
ZJT_START_DOC, 3 items (reserved=0x24)
        ZJI_DMCOLLATE, 1 (0x1)
        ZJI_DMDUPLEX, 1 (0x1)
        ZJI_PAGECOUNT, 0 (0x0)
ZJT_START_PAGE, 13 items (reserved=0x9c) [Page 1]
        ZJI_DMCOPIES, 1 (0x1)
        ZJI_DMMEDIATYPE, 1 (0x1) [standard / plain]
        ZJI_DMPAPER, 9 (0x9) [a4]
        ZJI_NBIE, 1 (0x1)
        ZJI_RASTER_X, 9472 (0x2500)
        ZJI_RASTER_Y, 6824 (0x1aa8)
        ZJI_RESOLUTION_X, 600 (0x258)
        ZJI_RESOLUTION_Y, 600 (0x258)
        ZJI_RET, 1 (0x1)
        ZJI_DMDEFAULTSOURCE, 7 (0x7) [auto]
        ZJI_VIDEO_X, 4736 (0x1280)
        ZJI_VIDEO_Y, 6824 (0x1aa8)
        ZJI_VIDEO_BPP, 2 (0x2)
ZJT_JBIG_BIH, 0 items
        Data: 20 bytes
                DL = 0, D = 0, P = 1, - = 0, XY = 9472 x 6824
                L0 = 128, MX = 16, MY = 0
                Order   = 3  ILEAVE SMID
                Options = 92  LRLTWO TPDON TPBON DPON
                54 stripes, 0 layers, 1 planes
ZJT_JBIG_BID, 0 items
        Data: 65536 bytes
         ff 02 ff 02 ff 02 ff 02 9c 01 cb 3a bf 1e 00 84
        ... 4f 45 d2 3d 61 26 61 aa ac 00 f8 ad 68 ba d8 00 0b a3 c0 5c
ZJT_JBIG_BID, 0 items
        Data: 16817 bytes
         17 05 c1 70 5c 17 05 c1 70 5c 17 05 c1 70 5c 17
        ... e6 40 00 7e c3 a0 03 3d ff 02 ff 02 ff 02 ff 02 ff 02 ff 02
ZJT_END_JBIG, 0 items
ZJT_END_PAGE, 0 items
ZJT_END_DOC, 0 items
Total size: 82373 bytes

There is no PJL, which is what "-z1" uses:
 
$ foo2zjs-wrapper -z1 -L0 -p9 ~/testpage.ps | zjsdecode -p
\033%-12345X@PJL JOB
@PJL SET JAMRECOVERY=OFF
@PJL SET DENSITY=3
@PJL SET ECONOMODE=OFF
@PJL SET RET=MEDIUM
@PJL INFO STATUS
@PJL USTATUS DEVICE = ON
@PJL USTATUS JOB = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 30
@PJL SET JOBATTR="JobAttr4=20170418074518"
\033%-12345
ZJS_MAGIC, 0x5a4a5a4a (JZJZ)
ZJT_START_DOC, 3 items (reserved=0x24)
        ZJI_DMCOLLATE, 0 (0x0)
        ZJI_DMDUPLEX, 1 (0x1)
        ZJI_PAGECOUNT, 0 (0x0)
ZJT_START_PAGE, 13 items (reserved=0x9c) [Page 1]
        ZJI_ECONOMODE, 0 (0x0)
        ZJI_VIDEO_X, 4768 (0x12a0)
        ZJI_VIDEO_Y, 6824 (0x1aa8)
        ZJI_VIDEO_BPP, 2 (0x2)
        ZJI_RASTER_X, 9536 (0x2540)
        ZJI_RASTER_Y, 6824 (0x1aa8)
        ZJI_NBIE, 1 (0x1)
        ZJI_RESOLUTION_X, 600 (0x258)
        ZJI_RESOLUTION_Y, 600 (0x258)
        ZJI_DMDEFAULTSOURCE, 7 (0x7) [auto]
        ZJI_DMCOPIES, 1 (0x1)
        ZJI_DMPAPER, 9 (0x9) [a4]
        ZJI_DMMEDIATYPE, 1 (0x1) [standard / plain]
ZJT_START_PLANE, 1 items
        ZJI_PLANE, 4 (0x4) [black]
ZJT_JBIG_BIH, 0 items
        Data: 20 bytes
                DL = 0, D = 0, P = 1, - = 0, XY = 9600 x 6824
                L0 = 128, MX = 16, MY = 0
                Order   = 3  ILEAVE SMID
                Options = 92  LRLTWO TPDON TPBON DPON
                54 stripes, 0 layers, 1 planes
ZJT_JBIG_BID, 0 items
        Data: 65536 bytes
         ff 02 ff 02 ff 02 ff 02 a2 45 4d 4e be e1 a1 c5
        ... d2 40 2c 4d 08 fc da 66 30 53 c1 49 4a ed 9c e7 39 ce 73 a3
ZJT_JBIG_BID, 0 items
        Data: 33048 bytes
         cd 1d a6 04 84 7f ec 71 ff 00 27 57 b3 3b 98 56
        ... 02 ff 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ZJT_END_JBIG, 0 items
ZJT_END_PLANE, 0 items
ZJT_END_PAGE, 0 items
ZJT_END_DOC, 0 items
Total size: 98604 bytes
\033%-12345X@PJL EOJ
\033%-12345X

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.