Article View: adobe.postscript.programming
Article #1187Staple each Doc, concatenated PS file- PLZ HELP!!
From: Dan Piekarz
Date: Fri, 21 Mar 2003 16:46
Date: Fri, 21 Mar 2003 16:46
81 lines
4465 bytes
4465 bytes
I have a bit of a problem. PostScript is a black box to me; I only know what I have learned in the past day about how PostScript works. I have to figure out how to concatenate three files together in one file but have each individual file stapled separately on a Xerox N4525. I have tried many things. To help you understand what I have tried I have listed the PS below (I am trying to concatenate three of these PS together) giving each line a number.
I have tried adding the following:
Attempt 1
False 0 startjob pop (between each doc)
Replacing line 3 with <</Staple 3>>setpagedevice
Results � all documents are stapled together as one. Same results if I remove �false 0 startjob pop� or if I try �true 0 startjob pop�
Attempt 2
false 0 startjob pop (between each doc)
Remove Line 3
Add <</Staple 3>>stepagedevice (between lines 99-100)
Add <</Staple 0>>stepagedevice (between lines 132-133)
Results � all documents are stapled together as one. Same results if I remove �false 0 startjob pop� or if I try �true 0 startjob pop�
Attempt 3
false 0 startjob pop (between each doc)
Add /foo save def (between lines 99-100)
Add foo restore (between lines 132-133)
Results � all documents are stapled together as one. Same results if I remove �false 0 startjob pop� or if I try �true 0 startjob pop�
Attempt 4
Tried all tests above again using << /Staple 1 /StapleDetails << /Type 6 /StapleMode 1 >> >> setpagedevice instead of <</Staple 3>>setpagedevice
WHAT AM I DOING WORNG?
line 1 %!PS-Adobe-3.0
line 2 % Select legal
line 3 <</Staple 0>>setpagedevice
line 4 << /DeferredMediaSelection true /PageSize [612 1008] /ImagingBBox null >> setpagedevice
line 5 % to create duplex output enter:
line 6 << /Duplex true >> setpagedevice
line 7 % Select output bin 1
line 8 <</OutputType (FINISHER BIN 1)>> setpagedevice
line 9 %%Creator: CompuSet Version 6.4.00
line 10 %%CreationDate: 3/19/03 12:14:48
line 11 %%BoundingBox: 0 0 612 1008
line 12 %%Pages: 4
line 13 %%DocumentSuppliedResources: procset CompuSet 6.4 1
line 14 %%DocumentNeededResources: font Frutiger-Bold
line 15 %%LanguageLevel: 2
line 16 %%EndComments
line 17 % This should appear right after the % End Comments:
line 18 %Created by Xerox Corporation, All Rights reserved.
line 19 %%BeginProlog
line 20 /g4imagemask {
line 21 16 dict begin
line 22 /g4Xdict exch def
line 23 /g4dict exch def
line 24 /g4rot 0.0 def
line 25 /g4pos 0 def
line 26 /g4res 300.0 def
line 27 /g4off 0 def
line 28 /g4bytes 0 def
line 29 /g4file currentfile def
line 30 /posX 0.0 def
line 31 /posY 0.0 def
line 32 /scaleX 1.00 def
line 33 /scaleY 1.00 def
line 34 /needClose false def
line 35 /percSeen 0 def
line 36 g4Xdict /ScaleX known { /scaleX g4Xdict /ScaleX get 0.00 add def } if
line 37 g4Xdict /ScaleY known { /scaleY g4Xdict /ScaleY get 0.00 add def } if
line 38 g4Xdict /PosX known { /posX g4Xdict /PosX get 0.0 add def } if
line 39 g4Xdict /PosY known { /posY g4Xdict /PosY get 0.0 add def } if
line 40 g4Xdict /Rotate known { /g4rot g4Xdict /Rotate get 0.0 add def } if
line 41 g4Xdict /Resolution known { /g4res g4Xdict /Resolution get 0.0 add def } if
line 42 g4Xdict /Length known { /g4bytes g4Xdict /Length get 0 add def } if
line 43 g4Xdict /FileName known {
line 44 /g4file g4Xdict /FileName get (r) file def
line 45 /needClose true def
line 46 } if
line 47 g4Xdict /Offset known { /g4off g4Xdict /Offset get 0 add def } if
line 48 g4off 0 ne { g4file dup fileposition g4off add setfileposition } if
line 49 /g4rows g4dict /Rows get def
line 50 /g4cols g4dict /Columns get def
line 51 g4bytes 0 gt { [ { /g4pos g4file fileposition g4bytes add def } stopped ] pop } if
line 52 gsave
line 53
line 54
Technical Details
Message-ID:
<1de86603.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10c61a,75011e1e269e701 X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2003-03-21 09:08:05 PST From: "Dan Piekarz" <daniel_piekarz@medcohealth.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: Staple each Doc, concatenated PS file- PLZ HELP!! Message-ID: <1de86603.-1@WebX.la2eafNXanI> Date: Fri, 21 Mar 2003 08:46:33 -0800 Lines: 103 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit