ondrej-zary / carps-cups

CUPS driver for Canon CARPS printers
GNU General Public License v3.0
68 stars 22 forks source link

Is a round trip possible? #17

Closed deakjahn closed 1 year ago

deakjahn commented 1 year ago

I compiled the filter on Ubuntu, installed a printer successfully. I printed the test page to a file. When trying to decode that file, this is what I got:

BLOCK 0 (len=13): DOCUMENT BEGINNING 
BLOCK 1 (len=14): DOCUMENT INFORMATION: Title: '***'
BLOCK 2 (len=8): DOCUMENT INFORMATION: User: '***'
BLOCK 3 (len=10): DOCUMENT INFORMATION: Time: 2023-05-04 (THU) 16:01:05.0
BLOCK 4 (len=4): BEGIN SOMETHING 1 
BLOCK 5 (len=4): BEGIN SOMETHING 2 
BLOCK 6 (len=5): PRINT PARAMETERS: !!!!!!!! Unknown param=0x2e00 2e 82 00 00 
BLOCK 7 (len=3): PRINT PARAMETERS: Image refinement: enabled
BLOCK 8 (len=64689):

Plus a decoded.pbm of exactly zero bytes long.

The file is very much in sync with the description, visual inspection reveals no problems, headers and footers are all right, the data above is correct, the question remains whether I should expect to get back the test page bitmap or not.

deakjahn commented 1 year ago

Bother, it's about the thousandth time that I forget: fopen("rb") on Windows. Sorry, false alarm...