PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Sharath,
I am trying to print a pdf file programmatically to a printer. In the mean time i want to switch between printer trays. could you please help how we can do this using acrobat api or by any other means.
You need to read the printer docs to see if its possible to do directly in PDF. If it is, just do that.
If not... You'll probably have to do one of three things. First, some printers like Xerox (4XXX and 6XXX series) and the Heidelberg 9110-machines you can prepend some device specific commands (XRX or KDK respectively) to the PDF. Second, some printers can be set up to pull from trays based on page size. You can try to adjust the media size of each PDF page to trigger proper drawer pulling. If the previous two choices fail, you will probably have to embed PostScript setpagedevice commands in the PDF file (see my post from a day to two ago on how to do this by embedding PostScript in the PDF file). This may or may not work - depending on the printer. Most RIPs work by converting PDF to PostScript so there's a good chance setpagedevice will work if its RIP is Adobe-based. You'll have to determine how to do this in PostScript first - then embed it in PDF.
Todd
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
