[fpc-pascal] Printing TFPImage to TCairoPSCanvas
Michael Van Canneyt
michael at freepascal.org
Mon May 21 14:23:59 CEST 2018
On Mon, 21 May 2018, Leonardo M. Ramé via fpc-pascal wrote:
> Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses
> TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but
> it seems that it's an impossible task, because Printer.Canvas requieres a
> TBitmap which in turn requires a widgetset. Can anyone help me with
> BTW, can fpReport print to a Printer? all the examples "exports" to PDF and other formats, but none of them is sending directly the report to a printer.
If you use the LCL, it uses the printer canvas.
A FPImage PostScript canvas exists, but it's largely untested. In theory,
this could be used to create a postscript file and that could be sent
directly to cups.
More information about the fpc-pascal