🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #42

Re: C Questions

#42
From: Ping Huang
Date: Wed, 04 Nov 1992 16:49
27 lines
2024 bytes
In article <720882725snx@ariel.demon.co.uk> abutler@ariel.demon.co.uk (Tony Butler) writes:

 >  Does anyone have any ideas on how to write a Postscript printer driver
 >  in C, or are there any PD/Shareware ones I could get hold of??

It depends on exactly what do you mean by a "printer driver". For
example, there are commercial packages (one called SLATE) which allow
you to use a reasonably easy-to-use set of their library calls that
implement a page description language, and then will print on any of a
large number of printers. I think there might be one which allows you to
"pretend" the printer is a very large, high-resolution monitor and use
the same calls as Borland BGI graphics (e.g. the company provides .BGI
drivers for various kinds of printers).

But it sounds like what you want to know is how to generate specifically
Postscript code to get the layout you want, and for that you might
contact Adobe and ask if they have any application programmer
information packs. They publish a number of books about the Postscript
language (the Red Book, the Blue Book), but if I remember correctly,
these manuals are more oriented at people interested in writing
Postscript programs by hand rather than writing C programs which will
take application data and print it out.

--
| Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
| "One Thing to name them all, One Thing to define them,
|  One Thing to place them in environments and bind them..."
Technical Details
Message-ID: <PSHUANG.92Nov4164914@freeside.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!ai-lab!zurich.ai.mit.edu!pshuang
References: <720882725snx@ariel.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!ai-lab!zurich.ai.mit.edu!pshuang
From: pshuang@zurich.ai.mit.edu (Ping Huang)
Newsgroups: alt.msdos.programmer
Subject: Re: C Questions
Date: 4 Nov 92 16:49:14
Organization: M.I.T. Artificial Intelligence Lab.
Lines: 28
Distribution: world
Message-ID: <PSHUANG.92Nov4164914@freeside.ai.mit.edu>
References: <720882725snx@ariel.demon.co.uk>
NNTP-Posting-Host: freeside.ai.mit.edu
In-reply-to: abutler@ariel.demon.co.uk's message of Wed, 4 Nov 1992 13:12:05 +0000