Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am using RTF::writer to create an RTF document from a mailing list. My problem is I need the 1st and 3rd page of each letter printed to tray 2 as apposed to default. There are over 200 letters in the RTF. Please can anyone tell me how I can do this? I'm desperate to find an answer and hoping not to use win32::ole and word to achieve this. thanks

Replies are listed 'Best First'.
Re: rtf::writer and print to specific tray
by digger (Friar) on Mar 05, 2005 at 00:14 UTC

    Printers don't output RTF natively. You will have to somehow get that RTF into another format, usually PCL or PostScript, to print correctly.

    That being said, since you are already using perl to create the RTF, you could also use it to generate PCL or PostScript on the fly. Check out PostScript::Simple or PCL::Simple for generating these files from perl. To do tray selection, you will need to have the specific codes for your device, which should be available in the user docs or from the manufacturer.