Reverend Phil has asked for the wisdom of the Perl Monks concerning the following question:
Possibly OT a bit, as the specific problem appears to be with Acrobat Reader on Win32...
Acrobat Reader has some unsupported command line functionality. Among the few commands is the following:
Now we get to the perl. I'm playing around in Tk, and I'd like to have an event trigger off the printing of a PDF that I've generated. I've tried using system, but it waits for your command to complete, and as the application does not close, it waits and waits and waits.
I'm looking for a way to spawn this application and not care two bits about its completion. Any suggestions?
-=rev=-
Acrobat Reader has some unsupported command line functionality. Among the few commands is the following:
..which should open the application iconized, print the document, and close the application. This is supposed to mimic the functionality that you get by dragging and dropping a PDF onto your printer icon. Unfortunately, I've tried with version 5.0 on Win2k and WinNT 4.0, and the application will print but not close (via drag-and-drop or command line).acrord32 /t <file> <printer> <print-driver> <portname>
Now we get to the perl. I'm playing around in Tk, and I'd like to have an event trigger off the printing of a PDF that I've generated. I've tried using system, but it waits for your command to complete, and as the application does not close, it waits and waits and waits.
I'm looking for a way to spawn this application and not care two bits about its completion. Any suggestions?
-=rev=-
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: external applications - system?
by particle (Vicar) on Feb 18, 2002 at 20:19 UTC | |
Try fork()?
by Kozz (Friar) on Feb 18, 2002 at 20:37 UTC | |
external applications on Win32 - Win32::Process
by Rex(Wrecks) (Curate) on Feb 19, 2002 at 01:46 UTC | |
by Reverend Phil (Pilgrim) on Feb 19, 2002 at 15:29 UTC | |
by gooch (Monk) on May 20, 2002 at 16:40 UTC |
Back to
Seekers of Perl Wisdom