Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-10

Pascal and ghostscript.

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Geoff Bagley

Please can anyone tell me whether it is possible to "pipe" or "filter" the output of Free Pascal through ghostscript in order to plot graphs on a laserjet printer ?

I would like a hard-copy equivalent to the graph unit of Borland Pascal.

Any counter suggestions also most welcome.

Thanks in advance.

Geoff Bagley
Marco van de Voort
to Geoff Bagley
Show quoted text 7 lines
Please can anyone tell me whether it is possible to "pipe" or "filter" the output of Free Pascal through ghostscript in order to plot graphs on a laserjet printer ? I would like a hard-copy equivalent to the graph unit of Borland Pascal. Any counter suggestions also most welcome.

What my approach would be

- make a unit that converts the graph image of the FPC graph unit to a pnm structure.
- use Cygwin (or their unix counterpart) tools to convert it to a normal graph format, and then have gs print that. (via latex if you have to)