in reply to Re: Win32::OLE and Acrobat
in thread Win32::OLE and Acrobat

Thanks. This almost works, but I can't get past the system call. The program "hangs" here until I manually kill acrobat. How can I get the program to continue to process code?
my @cmd = (q("C:\\Program Files\\Adobe\\Acrobat 9.0\\Acrobat\\Acrobat. +exe"), $file); system( @cmd );

Replies are listed 'Best First'.
Re^3: Win32::OLE and Acrobat
by rtillian (Initiate) on Apr 22, 2010 at 14:01 UTC

    I use to bring PDFs into Postscript by this method. The trick in this case is to have an instance of acrobat already opened.

    Try: open Acrobat manually. Start your program, a frame may be visible but will vanish and your program will continue.

    my code:

    my $pddoc = Win32::OLE->new("AcroExch.PDDoc"); $bef = "\"c:\\Program Files\\Adobe\\Acrobat 8.0\\Acrobat\\acrobat.exe\ +""; $bef.= " /n /s /o /h /t $inpfil \"DT6180PS_9111\" \"Xerox DT6180 PS3 v +2.0\" \"/\""; system( $bef );

    works perfect. I redirect the output to a printer, where the application redmon redirects the output to a file. By this way you can get any printercode to a file in a command mode. Good luck!