priPrinter: Pick Different Tray Per Page - priPrinter

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pick Different Tray Per Page

#1 User is offline   todad 

  • Newbie
  • Pip
  • Group: Senior Members
  • Posts: 3
  • Joined: 27-April 16

Posted 29 April 2016 - 12:56 PM

Is there a way to script a print job to print the third page from the letterhead tray, and print all other pages from a letter stock tray? Is there some kind of "routing tag" I could add to pages to dictate the tray source?
0

#2 User is offline   Alex 

  • Administrator
  • Group: Administrators
  • Posts: 238
  • Joined: 28-February 10
  • LocationHungary

Posted 29 April 2016 - 04:45 PM

Hi Todad,

Script my look in the following way:
local mainTrayName=	"normal";
local numPaperes=layout.GetNumSheets();
layout.tray=mainTrayName;//paper 1
layout.Print({dialog=false,from=0,to=1});
if(numPaperes>2)
{
layout.tray="Manual Feed";//paper 2
layout.Print({dialog=false,from=2,to=2});
if(numPaperes>3)
{
layout.tray=mainTrayName;//paper 1
layout.Print({dialog=false,from=3,to=numPaperes-1});
}}



>Tag
If you can put some specific text into page, then we can search for text in the whole page or in some specific area and switch tray.
0

#3 User is offline   todad 

  • Newbie
  • Pip
  • Group: Senior Members
  • Posts: 3
  • Joined: 27-April 16

Posted 02 May 2016 - 02:10 PM

Thank you.

Will this script handle number of copies? For instance, I want 6 copies with pages 0-1 printed from drawer 1, pages 2-2 from drawer 2, and pages 3-end from drawer 1. Will the jobs come out as 6 complete sets of this routine?

On the syntax for the script you propose; which words or phrases will I need to adapt to my specific printer and trays? Is there a reference table I can look at to modify the script for my purpose?

Also, in regard to your comment about putting a "tag" on the document that will re-route the drawers - could I write a script that will insert a non-printable tag on the active page that will serve the purpose of re-routing the drawer?
0

#4 User is offline   Alex 

  • Administrator
  • Group: Administrators
  • Posts: 238
  • Joined: 28-February 10
  • LocationHungary

Posted 03 May 2016 - 12:39 PM

#1
Number of copies may be added for each print operation.

#2

You should type names of real trays of your printer.
local mainTrayName= "normal";
and here:
layout.tray="Manual Feed";//paper 2

# tags.
Can you add this tags to your documents in your app?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users