we have some ricoh printers in our offices and we want to print from php using a simple socket but some documents are pre printed and are located in tray 2 the default sheets are in tray 1 . i want to be able to select a tray of that printer using a combination of the PJL PDF and PJL PCL language . anyone has an idea maybe? i've found this on the forum :
<ESC>%-12345X@PJL<CR><LF>
@PJL SET STAPLE=LEFTTOP<CR><LF>
@PJL [... more PJL commands if required ...]
@PJL ENTER LANGUAGE = PDF<CR><LF>
[... all bytes of the PDF file, starting with '%PDF-1.' ...]
[... all bytes of the PDF file ............................]
[... all bytes of the PDF file ............................]
[... all bytes of the PDF file, ending with '%%EOF' .......]
<ESC>%-12345X
it prints my pdf , however when i add the
@PJL ENTER LANGUAGE = PCL<CR><LF>
<ESC>&l1H <CR><LF>
around that code . i get some strange results... 1 pdf splits up over 5 papers with nothing but stream data (weird signs).
so i did the following
<ESC>%-12345X@PJL<CR><LF>
@PJL ENTER LANGUAGE = PCL<CR><LF>
<ESC>&l1H <CR><LF>
<ESC>%-12345X@PJL<CR><LF>
@PJL SET STAPLE=LEFTTOP<CR><LF>
@PJL [... more PJL commands if required ...]
@PJL ENTER LANGUAGE = PDF<CR><LF>
[... all bytes of the PDF file, starting with '%PDF-1.' ...]
[... all bytes of the PDF file ............................]
[... all bytes of the PDF file ............................]
[... all bytes of the PDF file, ending with '%%EOF' .......]
<ESC>%-12345X
however this printed the file from tray 1 again , it seems that it lost the settings when trying to print the pdf file ...
anyone got any tips for me or can make a correction? i think i'm nearly there ...