[fpc-pascal] Command line or CGI Printing

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


On 15 September 2010 14:20, Leonardo M. Ramé  wrote:
> Hi, I'm looking for a way to send images to a printer without using the Printers unit. I can't use it because it relies on X (on Linux) and I need to print from a CGI or command line application, that must be installed on servers without X installed.
>

For more details:     man lp

   Print a double-sided legal document to a printer called "foo":
          lp -d foo -o media=legal -o sides=two-sided-long-edge filename

   Print an image across 4 pages:
           lp -d bar -o scaling=200 filename

   Print a text file with 12 characters per inch, 8 lines per inch, and a
   1 inch left margin:
           lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename

   Or just print the file to the default printer
           lp "my long file.txt"



-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list