I am generating a PDF by PHP with FPDF. This works well.
Now what I want:
From a multipage PDF all pages expect the last one have to print with paper from tray1 and the last page from tray2.
Now the Question:
How is this possible? Is this a Acrobat Reader issue? Can it be done with JavaScript in PDF?
It is not possible, as PDFs do not contain any information on the printer trays or other information. It is actually set in the printer instructions through the client's printer driver, who has to provide this information to the client program. If you need this functionality for batch processing, you'd have to leave PHP and get on the client side, e.g. through the Acrobat SDK, in which you can give this information, e.g. on a PostScript printer via the SetPageDevice-function