in reply to open a pipe from system..
You have the terminology right - you want to open the filehandle:
However, that assumes that pdftohtml will spit its output to stdout rather than a file - I don't know this.open my $fh, 'pdftohtml x.pdf |' or die "Can't run pdftohtml: $!";
The other alternative is for myPerlPrg.pl to fake this by having it take the x.pdf file, create the x.html file, and read it in a single execution. The command line would look like:
You could create a temporary filename, pass that to pdftohtml, and then use that to read the HTML to convert to text.myPerlPrg.pl x.pdf x.txt
Hope that helps,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open a pipe from system..
by Anonymous Monk on May 01, 2005 at 15:36 UTC | |
by Anonymous Monk on May 01, 2005 at 15:57 UTC |