#!/usr/bin/perl use Win32::OLE; use Win32::OLE::Const 'Microsoft Word'; #Where the temp file sent from the client is my $file = 'c:\temp\final.doc'; #Open MS Word my $Word = Win32::OLE->new('Word.Application', 'Quit'); $Word->{'Visible'} = 1; # if you want to see what's going on #Open the file $Word->Documents->Open($file); $Word->ActiveDocument->PrintOut({ Background => 0, Append => 0, Range => wdPrintAllDocument, Item => wdPrintDocumentContent, Copies => 1, PageType => wdPrintAllPages, PrintToFile => 1, PrToFileName => "c:\temp\out.ps" });