[fpc-pascal] Command line or CGI Printing

Michael Van Canneyt michael at freepascal.org
Wed Sep 15 15:28:54 CEST 2010



On Wed, 15 Sep 2010, 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.
>
> Does FPC have a workaround for this?

Yes:

Draw on a postscript canvas or image canvas, 
write to file and execute 'lpr myfile.ps' or 'lpr myfile.png'

Michael.


More information about the fpc-pascal mailing list