Sponsored Content
Operating Systems Linux Red Hat How to print postscript files? Post 302700233 by venikathir on Thursday 13th of September 2012 06:42:37 AM
Old 09-13-2012
Printing PostScript files
Printing PostScript files on a printer that has a PostScript interpreter is simple; just use lpr, and the printer will take care of all of the details for you. For those of us that don't have printers with PostScript capabilities, we have to resort to other means. Luckily, there are programs available that can make sense of PostScript, and translate it into a language that most printers will understand. Probably the most well known of these programs is Ghostscript.
Ghostscript's responsibility is to convert all of the descriptions in a PostScript file to commands that the printer will understand. To print a PostScript file using Ghostscript, you might do something like
Code:
$ gs -dSAFER -dNOPAUSE -sDEVICE=deskjet -sOutputFile=\|lpr thesis.ps

Notice in the above example that we are actually piping the output of Ghostscript to the lpr command by using the -sOutputFile option. Ghostview is an interface to Ghostscript for the X Window System. It allows you to preview a PostScript file before you print it. Ghostview and Ghostscript can both be swiped from ftp://prep.ai.mit.edu/pub/gnu/.
This User Gave Thanks to venikathir For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

postscript printing

How do I setup a printer queue to do postscript printing using UNIX commands? I setup a remote host/printer using the admintool (solaris), but it does not let me specify that this printer will print postscript. (1 Reply)
Discussion started by: pkappaz
1 Replies

2. UNIX for Dummies Questions & Answers

postscript reader for hp-unix

sorry, it is a dumb question, but i could not find any answer in anything else. does anybody know whether there is any postscript file reader for HP-Unix? :) (1 Reply)
Discussion started by: sskb
1 Replies

3. UNIX for Dummies Questions & Answers

UNIX and PostScript

Hi! Iīm wondering if itīs possible to use PostScript in UNIX. I have a client that want to install a HP ColorPro GA in a UNIX network and I donīt have any experience about UNIX. Is UNIX using PostScrip by deafault, like a Mac or does he need to install some form of RIP? Best regards <Therapy> (2 Replies)
Discussion started by: <Therapy>
2 Replies

4. Programming

How do I print(save) words to postscript?

It should be pretty simple but I'm just new to IDL and am workling through the command line and scripts(program.pro). If I want to save words to the bottom of a .ps file that I am putting a few plots in what should written in my code. set_plot works for plots but apparently not words. Print... (0 Replies)
Discussion started by: luked
0 Replies

5. Shell Programming and Scripting

manipulate postscript via sed

dear all, on solaris10 for x86 i am trying to modify the creation date of a postscript file with sed in a csh script. sed is driving me crazy though...i think due to the spaces in the string i am trying to substitute?? part of the postscript file: %!PS-Adobe-3.0... (3 Replies)
Discussion started by: lada niva
3 Replies

6. Shell Programming and Scripting

setpagedevice (postscript)

Basically, I'd like to apply a printer tray selection on postscript files by means of a (Bash) shell script. What works on a Xerox DocuColor 5000, is this (exemplified for one tray): sed "s/BeginPageSetup/&\n<<\/MediaColor (red)>> setpagedevice/" -i page.ps Every attempt to do so on a... (0 Replies)
Discussion started by: dr.house
0 Replies

7. UNIX for Dummies Questions & Answers

Creating a PostScript File

Hi All, I have a requirement, where i have create a pdf file in unix. I have gone through few links and understood that it could be done in 2 step manner. - Create a .ps PostScript file. - Pass .ps file to p2pdf command to create the pdf. But i am having trouble creating the .ps file. I... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

8. AIX

Printing Postscript files through Infoprint Manager to a Postscript printer

Hello, I am runnning Infoprint Manager 4.3 on AIX 5.2 . There is no problem printing AFP files, but I have hit a snag trying to use "AIX DSS" or "Other Printer" actual destinations to send unconverted Postscript files to native Postscript printers. The files are big, and they print correctly,... (0 Replies)
Discussion started by: ahetzel
0 Replies
PS2PDF(1)							    Ghostscript 							 PS2PDF(1)

NAME
ps2pdf - Convert PostScript to PDF using ghostscript ps2pdf12 - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript ps2pdf13 - Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript SYNOPSIS
ps2pdf [options...] (input.[e]ps|-) [output.pdf|-] ps2pdf12 [options...] (input.[e]ps|-) [output.pdf|-] ps2pdf13 [options...] (input.[e]ps|-) [output.pdf|-] DESCRIPTION
The ps2pdf scripts are work-alikes for nearly all the functionality (but not the user interface) of Adobe's Acrobat(TM) Distiller(TM) prod- uct: they convert PostScript files to Portable Document Format (PDF) files. The three scripts differ as follows: - ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible). - ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible). - ps2pdf per se currently produces PDF 1.2 output (Acrobat 3-and-later compatible). However, this may change in the future. If you care about the compatibility level of the output, use ps2pdf12 or ps2pdf13, or use the -dCompatibility=1.x switch in the command line. There are some limitations in ps2pdf's conversion. See the HTML documentation for more information. SEE ALSO
gs(1), ps2pdfwr(1), Ps2pdf.htm in the Ghostscript documentation VERSION
This document was last revised for Ghostscript version 7.05. AUTHOR
L. Peter Deutsch <ghost@aladdin.com> is the principal author of Ghostscript. Russell J. Lang <rjl@aladdin.com> is the author of most of the MS Windows code in Ghostscript. This manpage by George Ferguson. 7.05 22 April 2002 PS2PDF(1)
All times are GMT -4. The time now is 01:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy