setpagedevice (postscript)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting setpagedevice (postscript)
# 1  
Old 11-04-2009
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):

Code:
sed "s/BeginPageSetup/&\n<<\/MediaColor (red)>> setpagedevice/" -i page.ps

Every attempt to do so on a Xerox DocuPrint 180, though, fails miserably Smilie

What worked on the latter printer but refuses to do so for my postscript files:

Code:
sed "s/BeginPageSetup/&\n<<\/MediaType (red) \/MediaColor (red)>> setpagedevice/" -i page.ps

Any one any idea Smilie I'm as stuck as can be ...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

How to print postscript files?

Hi, I am looking for a quick answer. How to print postscript files by using gs command? Let's say the HP printer's hostname is pname and the document name is pfile. The OS is RHEL 4 with cups enabled. I've read gs man but didn't get it well. Thank you in advance! (1 Reply)
Discussion started by: aixlover
1 Replies

2. 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

3. 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

4. UNIX for Dummies Questions & Answers

Splitting a postscript file

Hi , I have a problem .. I have a post script file which has text as %%colur code :uyiu %% pagesize :9808 %%page: 1 1 %%color:78798- %%ufgfhre %%Page: 2 1 I need to create two files with this one post script file . the first file should have data till what is in %%Page: 1 1 ... (4 Replies)
Discussion started by: selvapraveen
4 Replies

5. UNIX and Linux Applications

KickStart postscript problem

Hello everyone: Im not going to explain about kickstart, i supposed you know, that one of the features of this program is to run a postscript after installation.So after install packages you can run a set of commands to make a "first-configuration" of your system. Usually people writes... (0 Replies)
Discussion started by: trutoman
0 Replies

6. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question
UNIPRINT(1)							  LINUX COMMANDS						       UNIPRINT(1)

NAME
uniprint - produce postscript output from unicode text for printing SYNOPSIS
uniprint [ -out output-file ] [ -in input-file ] [ -decode encoding ] [ -printer printer ] [ -L ] [ -media media ] [ -us ] [ -nus ] [ -break ] [ -wrap ] [ -left ] [ -right ] [ -size font-size ] [ -hsize header-font-size ] [ -font truetype-font-file ] DESCRIPTION
uniprint is a program from the yudit distribution. It makes a formatted poscript output that can be saved or directly sent to the printer. The program needs a TrueType font that has unicode table in order to operate. If you are running Linux you most probably have unicode truetype fonts, because there are very few vendors, if any. who give discount if you do not buy Windows. If you are running other Unices it is still possible to get a freely available font. I have made ciberbit.ttf a default font for uniprint, mainly because it is freely downloadable from http://www.bitstream.com/. The postcript output contains all drawing information. No extra fonts are needed, and it can be printed on any postscript printer. You may encounter probkems with old ghostview or old printers. I used this program with ghostscript 5.10 because 2.6.2 gave me stack overflow error. OPTIONS
-out ouput-file Do not sent the output to the printer, put it in the file instead. If the '-' character is specified, send the postscript data to the standard output. -in input-file If specified read the document from a file. Read stdin otherwise. -decode encoding specifies the encoding of the input text. All encodings that are available for uniconv can be used. If not specified encoding is set to utf-8. -printer printer Send the postscript output to printer through the 'lpr -P Printer' command. -break option makes this program print a graphical representation of line breaking characters. -us option turns on uniscribe emulation. For some scripts emulation is turned on by default. -nus option turns off uniscribe emulation. For some scripts emulation is turned off by default. -wrap option makes this program do a simplistic line breaking on word boundaries. -left option sets the embedding of the document to Left. -right option sets the embedding of the document to Right. -L Selects landscape printing. The default is portrait. -media media Sets paper size. The default is A4. The following media values are accepted: A3, A4, A5, B4, B5, Executive, Folio, Ledger, Legal, Letter, Quarto, Statement, Tabloid -size font-size sets the size of the font for the text body in points. -hsize heder-font-size sets the size of the font for the header in points. If zero size is specified, no header is printed. -font truetype-font specifies the font to be used for printing. truetype-font is the full pathname of the font, like /somepath/myfonts/cyberbit.ttf or just the name of the file cyberbit.ttf. The fonts are searched using yudit.fontpath property in ~/.yudit/yudit.properties or /usr/share/yudit/config/yudit.properties. direc- tory where the font files are kept. By default /usr/share/yudit/fonts and ~/.yudit/fonts are searched. This option can be speci- fied multiple times, to create a virtual font. FILES
~/.yudit/yudit.properties or /usr/share/yudit/config/yudit.properties can have yudit.fontpath and yudit.datapath properties. The former is where the font files, the latter is where the map files are kept. By default /usr/share/yudit/fonts is searched. SEE ALSO
uniconv AUTHOR
This program was written by gsinai@iname.com (Gaspar Sinai), using the code of ttf2pfa program that was written by Adrew Weeks. Last Updated Tokyo, 2 November, 2001. LINUX COMMANDS
Nov 25 1997 UNIPRINT(1)