[fpc-pascal] Command line or CGI Printing

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Sep 15 16:13:24 CEST 2010

Op 2010-09-15 15:59, Leonardo M. Ramé het geskryf:
> Nice!, and is it possible to send the bitmap data to lpr through a
> pipe?.

You can print stdout output of a program like that. eg:
   myprogram | lp

> Something like "cat myfile.bmp|lpr". This doesn't work, it just prints
> garbage, maybe "cat" is handling the file as text.

Yeah, I think cat treats it like text then.

So your best bet I think is to do:  lp myfile.bmp

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list