Eu estou imprimindo do sistema Windows para o servidor de impressão Ubuntu, o arquivo de spool embutido no sistema Ubuntu é "dados da impressora Zenographics ZjStream (big-endian)". Eu usei o comando "zjsdecode" para converter o arquivo em texto. A saída que obtive é mostrada abaixo, mas quero recuperar o texto oculto dentro desse arquivo.
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_DMPAPER, 1 (0x1) [letter]
ZJI_DMCOPIES, 1 (0x1)
ZJI_DMDEFAULTSOURCE, 7 (0x7) [auto]
ZJI_DMMEDIATYPE, 1 (0x1) [standard / plain]
ZJI_NBIE, 1 (0x1)
ZJI_RESOLUTION_X, 600 (0x258)
ZJI_RESOLUTION_Y, 600 (0x258)
ZJI_RASTER_X, 4864 (0x1300)
ZJI_RASTER_Y, 6408 (0x1908)
ZJI_VIDEO_BPP, 1 (0x1)
ZJI_VIDEO_X, 4864 (0x1300)
ZJI_VIDEO_Y, 6408 (0x1908)
ZJI_ECONOMODE, 0 (0x0)
ZJT_JBIG_BIH, 0 items
Data: 20 bytes
DL = 0, D = 0, P = 1, - = 0, XY = 4864 x 6408
L0 = 128, MX = 16, MY = 0
Order = 3 ILEAVE SMID
Options = 92 LRLTWO TPDON TPBON DPON
51 stripes, 0 layers, 1 planes
ZJT_JBIG_BID, 0 items
Data: 65536 bytes
ff 06 00 00 00 00 10 00 09 d9 a9 d9 c3 14 20 05
... f0 62 cc c0 24 d8 56 7e dd 5d 4e 80 2f 51 39 e8 09 3b 64 e6
ZJT_JBIG_BID, 0 items
Data: 43128 bytes
bf 1b 71 55 ab b9 51 19 76 9c 6a 08 c5 b4 d7 e7
... a0 19 15 1f a0 73 89 53 4f 16 76 dd d9 ff 02 ff 02 00 00 00
ZJT_END_JBIG, 0 items
ZJT_END_PAGE, 0 items
ZJT_START_PAGE, 13 items (reserved=0x9c) [Page 2]
ZJI_DMPAPER, 1 (0x1) [letter]
ZJI_DMCOPIES, 1 (0x1)
ZJI_DMDEFAULTSOURCE, 7 (0x7) [auto]
ZJI_DMMEDIATYPE, 1 (0x1) [standard / plain]
ZJI_NBIE, 1 (0x1)
ZJI_RESOLUTION_X, 600 (0x258)
ZJI_RESOLUTION_Y, 600 (0x258)
ZJI_RASTER_X, 4864 (0x1300)
ZJI_RASTER_Y, 6408 (0x1908)
ZJI_VIDEO_BPP, 1 (0x1)
ZJI_VIDEO_X, 4864 (0x1300)
ZJI_VIDEO_Y, 6408 (0x1908)
ZJI_ECONOMODE, 0 (0x0)
ZJT_JBIG_BIH, 0 items
Data: 20 bytes
DL = 0, D = 0, P = 1, - = 0, XY = 4864 x 6408
L0 = 128, MX = 16, MY = 0
Order = 3 ILEAVE SMID
Options = 92 LRLTWO TPDON TPBON DPON
51 stripes, 0 layers, 1 planes
ZJT_JBIG_BID, 0 items
Data: 32952 bytes
ff 06 00 00 00 00 10 00 09 d9 a9 d9 c3 14 20 05
... d9 80 a6 70 61 d0 60 35 a2 03 6a c8 ed 79 03 92 ff 02 ff 02
ZJT_END_JBIG, 0 items
ZJT_END_PAGE, 0 items
ZJT_END_DOC, 0 items
Total size: 32972 bytes