🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #249

Re: Adding Staple commands in postscript file

#249
From: Alex_Cherepanov
Date: Fri, 19 Aug 2005 19:35
50 lines
2697 bytes
needo82@adobeforums.com wrote:

> I have used multiple logical documents in my postscript file. Each document has 4 pages.
> I want to know how to enable stapling for each of these individual documents.
 > Whats the syntax and appropriate order/position of these staple commands.
See "Adobe PostScript 3 Version 3010 and 3011 Product Supplement",
http://partners.adobe.com/public/developer/en/ps/PS3010and3011.Supplement.pdf
> I know stapling can be enabled like this

> << /Staple 3 /StapleDetails << /Type 1 /StapleLocation (SinglePortrait) >> >> setpagedevice
/Staple 3 means: Staple after each page set, as defined by the Collate
parameter (PLR3, p. 419).
/StapleDetails is a product-specific key. See the Addendum for your
printer.

> but where to use this command in the document. 
 > should i use it in document setup section or pagesetup section ?
In the page setup section.
Here's a simple PS job that staples 2 and 3 pages. Try it.

%!
<</Staple 0>> setpagedevice
showpage
<</Staple 4>> setpagedevice
showpage % 2 pages are stapled
<</Staple 0>> setpagedevice
showpage
showpage
<</Staple 4>> setpagedevice
showpage % 3 pages are stapled

> whats the importance of << /Staple 0 >> setpagedevice .
 > Does it command printer to staple all the pages that have come before it?
Don't staple.

> On what factors doest these staple commands depends. does it depend on pagesize ?
/Staple 3 depends on the values of /Collate and #copies

> should i set pagesize first or set staple options first ?
Page size first or set them together.

> If u have any link or document that can help in understand stapling in postscript
 > language then please share. I am in urgent need.
See above. Ask your printer manufacturer for the Addendum.
Feel free to contact me if you need some practical help.

Regards,
Alex Cherepanov
alexcher@coscript.com
+1 610 529 3475
Technical Details
Message-ID: <6865482BA1CDC48F01D23FFB6A3F57C9@in.webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-06!sn-xit-13!supernews.com!news.germany.com!news.musoftware.de!quokka.wn.com.au!webx
References: <3bbc045d.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,e4c1ef8c54377853,start
X-Google-Attributes: gid10c61a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alex_Cherepanov@adobeforums.com
Newsgroups: adobe.postscript.programming
Subject: Re: Adding Staple commands in postscript file
Message-ID: <6865482BA1CDC48F01D23FFB6A3F57C9@in.webx.la2eafNXanI>
Date: Fri, 19 Aug 2005 12:35:02 -0700
References: <3bbc045d.-1@webx.la2eafNXanI>
Lines: 58
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.1) Gecko/20040707
X-Accept-Language: en-us, en
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-06!sn-xit-13!supernews.com!news.germany.com!news.musoftware.de!quokka.wn.com.au!webx