Skip to main content.
home | support | download

Back to List Archive

Re: Swish-e Filtering on Win2003

From: Bill Moseley <moseley(at)>
Date: Thu Mar 18 2004 - 20:58:49 GMT
On Thu, Mar 18, 2004 at 12:49:23PM -0800, Philippus, Brian wrote:
> I renamed that program to and ran it and it filtered
> the file just fine.  So I ran it a second time, and it hung.  In the task
> manager, I found pdftotext.exe running.

Ok, so my wild guess is that Perl is not closing the program correctly.

My next suggestion would be to try running pdftotext.exe via IPC::Open2
which is what does.  That means writing a little bit of Perl
and/or copying some code from

Can someone that has Windows help Brian out here?  Brian, it would be
helpful if we knew what version of Windows and Perl you are running, I

In there's "windows_fork()" which uses IPC::Open2 to run the
program.  That function should return a file handle.
It's called from "run_program()" and the file handle goes out of scope
at the end of that function which should close the pipe.  Perhaps that's
not happening on Windows.

Or maybe I could be way off and instead what's happening is that
pdftotext is hanging for some other reason.

This is all just guessing, though.  Debugging problems on windows is often
frustrating for me.

Bill Moseley
Received on Thu Mar 18 12:58:49 2004