Adding Logo in a Docket
If the customer wants their Docket Printer to print their company logo in each docket they print. For this we have to get a logo from customer ( preferably soft copy not hard copy/ better if we don't have to scan), then we will customize the logo in our format and send it to printer memory.
Instruction to desingn bitmap image in Paintshop program
1. Open logo in Paintshop and design bmp image
2. Maximum horizontal pixels=512
3. Set Bitmap Size:
select image-> attribute
select units->pixels
set colurs= Black and white ( if necessary)
4. The image needs to be inverted and rotation by 270 degree
select image->invert clours
select image->flip/rotate
select roatate by angle
slect 270 270 degrees
5. Save the image as Monocrome bitmap file
6. Run this command in a shell, this command will make out.img file
bmplogo <filename > ( filename is the name of the bitmap image you just saved)
7. Now send this image to printer
lpr -P lp1 out.img (lp1 is just a example of printerqueue, it depends on individual machine)
8. To test print
Get the file called /docket-logo/logo-print.prn file from somewhere eg: lpr -P /home/usr/danny/mods/docket-logo/logo-print.prn
Note: to test print in other machine
eg : cat logo-print.prn | ssh ccc@servername "cat>/dev/lp0"
Things that can go wrong
If some reason, the printer crashes or power failure , make sure you have backup of out.img file to resend it printer again.
