Q) Some of our printed documents based upon PDF format do have a bank money transfer form attached. For that purpose the printer shall switch for this last page to the manual tray and inform the user to add that kind of paper. Is ELP able to handle this?

A) Sure!

Prerequisites: The printer's media type settings must like this:

Manual paper tray: preprinted
Any other tray: not preprinted

Convert.ini:

[GLOBAL]

ELP=ON

PreParsing=ON

; Initialize the variable

Variable=#MY_STOP_TRIGGER#:FALSE

[Search for the keyword]

Search_Binary=TAX

; Maybe you need to use another search-method like Search_Windows or Search_Windows_NEW

; We recommend to use keywords, which won't appear randomly. Perfect is something like "!!TAX!!"

; Only executing for data streams containing the word "TAX":

ELP_Command=C1:#PREPARSEPAGECOUNT#I9;

; Sets the papertray to preprinted (on first page).

; Set the trigger variable to TRUE

Variable=#MY_STOP_TRIGGER#:TRUE

[If no bank form page found]

; Primary trigger: always TRUE:

Trigger_Binary=1

; Secondary trigger, when this variable contains TRUE:

Trigger_Variable=#MY_STOP_TRIGGER#:FALSE

; Stop the execution of this inifile,

EXIT=ON

[Otherwise insert printer stop command in data stream]

; Search the initialization data stream while writing out:

OutSearch_Binary=\x1B%-12345X

; Add the PJL command for the display and stop message:

Add_Binary=@PJL DISPLAY="Please add tax paper in manual tray and press OK"\x0D\x0A

Of course you can adjust the display message, but only the text between the double quotes.

 

Related articles: Rules theory, Rule assistant, Add key to rule