What's the official way to print to a PostScript printer?

4 posts / 0 new
Last post
Hans
Hans's picture
Offline
Last seen: 1 day 2 hours ago
Joined: 2010-12-09 22:04
What's the official way to print to a PostScript printer?

What's the proper way to send PostScript to a PostScript (PS) printer? I haven't found any clear documentation on the matter. Is there a raw/PS pass-through in the printer.device?

AmiPDF seems to write PS to a DOS device. That works, but it seems rather messy.

Hans

msteed
msteed's picture
Offline
Last seen: 2 weeks 5 days ago
Joined: 2022-01-18 08:34
Re: What's the official way to print to a PostScript printer?

I've never done it programatically, but from a user perspective when I want to print something that's already Postscript I send it directly to the port that the printer is connected to. For me, that's LPR: (DOS level) or lpr.device (device level), since I use lpr.device to talk to my networked printer. You'd use PAR: or parallel.device if you were connected to a parallel port, etc.

The Postscript printer driver does have a pass through mode (selected by the "Driver mode" gadget in the driver's preferences), but that's just one extra step when I want to print something, so I skip the printer driver and just go directly to the port. I lose things like offline and out-of-paper detection, but that stuff doesn't work over the network anyway. I don't know if there's a way to select pass through mode from within a program.

Hans
Hans's picture
Offline
Last seen: 1 day 2 hours ago
Joined: 2010-12-09 22:04
Re: What's the official way to print to a PostScript printer?

@msteed

Thanks. So, Postscript printing isn't properly supported. Having to switch manually to passthrough mode in PS prefs when printing genuine Postscript is just asking for trouble.

I think it's worth looking at porting the CUPS printing system again, or at least using its printer driver logic. IIRC, it wasn't worth it in the past because you still needed proprietary printer drivers. However, now there's the Internet Printing Protocol (IPP) standard.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project. http://keasigmadelta.co.nz/ - more of my software.
msteed
msteed's picture
Offline
Last seen: 2 weeks 5 days ago
Joined: 2022-01-18 08:34
Re: What's the official way to print to a PostScript printer?

It would be nice if the Postscript driver had an "automatic passthrough" mode, where if a file coming in is recognized as Postscript it is sent straight to the printer, while all other files are converted to Postscript as usual.

For most users this would allow files to just be sent to PRT: for printing, without worrying whether they were Postscript or not, and without needing to know which port the printer is connected to. For the rare user who actually wanted to print a Postscript file instead of the document it represents, they could just disable automatic mode.

Log in or register to post comments