IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#57084 - 05/31/19 07:21 AM Conditional stapling
Phree Offline
OL Expert

Registered: 09/26/02
Posts: 465
Loc: South Coast, UK
Hi,

I'm trying to set a document to staple if it's total pages is greater than 7 pages. I've a script in Watch that counts the total number of pages and adds the number to the datafile. Then within the form, I have a condition (called SetStapleOn) which checks if that number is greater than 7:
Code:
=@(1,56,56)>'7' 


I then went to Advanced Paper Handling within my document and set:
Code:
Staple=Staple Top Left portrait
When: SetStapleOn


However, when I print, regardless of whether the document I send is 2 , 3, 5 or 20 pages, they all staple.

Is it to do with my printer PPD?

Thanks,
Neil.

Top
#57086 - 05/31/19 08:44 AM Re: Conditional stapling [Re: Phree]
douglasb Offline
OL Toddler

Registered: 08/24/04
Posts: 42
Loc: Cheshire, UK
In Advanced Paper Handling are you also selecting your SetStapleOn condition?

Top
#57087 - 05/31/19 09:08 AM Re: Conditional stapling [Re: Phree]
Phree Offline
OL Expert

Registered: 09/26/02
Posts: 465
Loc: South Coast, UK
Hi,

yes, in the Advanced Paper Handling within the main Document properties I have as above...But everything staples regardless of how many pages...

I've no changed anything in the individual pages advanced handling.


Edited by Phree (05/31/19 09:09 AM)

Top
#57088 - 05/31/19 10:03 AM Re: Conditional stapling [Re: Phree]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
Try this for your condition:

Code:
=strtoint(@(1,56,56))> 7 


Now, in regards of your PPD, here's what you need to check:
  1. Do you have the proper one for your printer?
  2. Are the Postscript command, for stapling, in the PPD?
  3. Are the Postscript command, for stapling, up-to-date in your PPD?


In retrospective:

1. If you do not have the proper PPD for your printer, please contact your printer manufacturer or go to their website. We provide default PPDs with our software but specific commands like stapling varies from manufacturer to manufacturer.

2. If you have the proper PPD, please open it in a text editor, search for the Postscript command that are related to the called one you see in PlanetPress. In your case SetStapleOn. Start your search beyond *UIConstraints:. If the Postscript command, next to the title of the command SetStapleOn is "", then the Posctscript command is not in your PPD.

3. If the command are there, then it could be that those found in the PPD aren't up-to-date. To confirm it:

  • Open any PDF in a PDF editor
  • Print your PDF while stapling it, through a Postscript driver.
  • Confirmed that it works at the printer
  • Reprint it, while stapling, but this time, print it to file.
  • Open the printed file into a text editor
  • Search for the SetStapleOn command title and confirm that the Postscript command is the same as your PPD


If it isn't the same, copy the one from your printed to file document into your PPD.

It could be as well that your printer is set to default stapling for everything. You should verify that as well.

Hope that help.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57093 - 06/03/19 09:04 AM Re: Conditional stapling [Re: Phree]
Phree Offline
OL Expert

Registered: 09/26/02
Posts: 465
Loc: South Coast, UK
Hi Jean-Cedric,

firstly, thanks so much for the detailed reply - very much appreciated. I tried all your suggestions above but found I was still getting the same result.

In the end, I tried setting it on a page by page level in the Advanced Paper Handling...And it worked smile

I'm up and running now, thanks again.

Neil.

Top