Visit Our UNIX and Linux User Community


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

Previous Thread | Next Thread
Test Your Knowledge in Computers #828
Difficulty: Medium
JSON and ECMAScript 2018 both allows the Unicode line terminators U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR to appear unescaped in quoted strings.
True or False?

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
Tray(3I)						    InterViews Reference Manual 						  Tray(3I)

NAME
Tray - compose interactors into arbitrary or constrained layouts SYNOPSIS
#include <InterViews/tray.h> DESCRIPTION
A tray is a scene of interactors that overlap, tile, or have other constraints on their alignment relative to each other. One of the interactors in a tray can serve as a background for the other interactors. Constraints on the layout of interactors are made by aligning interactors to each other. Two interactors are aligned by specifying which edges coincide. For example, the lower left corner of one interactor may be aligned to the upper right of another. TGlue objects can be used to introduce transparent space between aligned interactors. TGlue has a natural size, shrinkability, and stretchability (though TGlue objects are not interactors). Trays stretch or shrink the TGlue along with the aligned interactors to satisfy the alignment constraints. The tray adopts the shape of the background interactor if there is one; otherwise, the tray's shape depends on the shapes of its components and potentially on their alignments. By default, a tray without a background takes on a width and height equal to the largest of the widths and heights of its components. However, alignments involving the tray can in effect override this default. For example, if the left and right sides of a particular component are aligned to the tray's left and right sides, respectively, then the tray's sides are constrained to coincide with the component's sides. Thus the tray will adopt the width, horizontal shrinkability, and horizontal stretchability of that component. Another example: To ensure that a tray circumscribes a collection of (mutually aligned) com- ponents, align the outer edges of the components on the periphery of the collection to the outer edges of the tray, thereby constraining the tray to assume the shape of the collection. TGLUE PUBLIC OPERATIONS
TGlue(int w = 0, int h = 0, int hstretch = hfil, int vstretch = vfil); Define TGlue of a minimum size. The TGlue can stretch from the given size but cannot shrink. TGlue(int, int, int hshrink, int hstretch, int vshrink, int vstretch); Define general TGlue with a given natural size (width and height), shrinkability, and stretchability. TRAY PUBLIC OPERATIONS
Tray(Interactor* background = nil) Create a new tray, optionally having an interactor as a background. void Align(Alignment, Interactor*, TGlue* = nil) void Align(Alignment, Interactor*, Alignment, Interactor*, TGlue* = nil) Align an interactor to another interactor (the tray itself by default), optionally with TGlue between them. Align operations insert interactors into the tray if they have not been inserted already. void Align(Alignment, Interactor*, ..., Interactor* = nil) Apply an alignment to a set of interactors. This operation is shorthand for aligning the interactors to each other explicitly. For example, Align(Left, i1, i2, i3, i4) aligns the left sides of interactors i1 through i4. Two to seven interactors can be aligned at once. void HBox(Interactor*, ..., Interactor* = nil) void VBox(Interactor*, ..., Interactor* = nil) The HBox and VBox operations align the specified interactors such that they tile left-to-right and top-to-bottom, respectively. These operations align in one dimension only. Two to seven interactors can be aligned at once. If the first (last) component is the tray or the background interactor, then the leftmost (rightmost) component will be aligned with the left (right) side of the tray. void Insert(Interactor*) Insert an interactor into the tray without an alignment. The interactor will appear in the lower left corner of the tray. void Change(Interactor*) Notify the tray that the given interactor's shape has changed. The tray will recompute the layout of its component interactors to satisfy any alignments. If the tray does not contain a background, then a change in the shape of one of its components may in turn change the tray's shape. If the tray has a background, then the tray's shape will change only if the shape of the background changes. void Remove(Interactor*) Take an interactor out of a tray and eliminate any alignments that have been made to it. SEE ALSO
Interactor(3I), Scene(3I), Shape(3I) InterViews 8 September 1988 Tray(3I)

Featured Tech Videos