pdf2text

2001-02-05 Thread Jim M.

Hi,
When used:
ShowPDF()
{
pdf2ps "$1" | ps2ascii
}
in mutt.octet.filter file, i get the error:
Usage: pdf2ps [-dPSBinaryOK] [-dPSLevel] [-dPSNoProSet] inputpdf output.ps

I have tried things goten couple of suggestions.
Any hints will be appreciated.
Jim
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: pdf2text

2001-02-05 Thread Jeremy A. Gray

On Mon, Feb 05, 2001 at 07:20:51PM -, Jim M. wrote:
 Hi,
 When used:
 ShowPDF()
 {
 pdf2ps "$1" | ps2ascii
 }
 in mutt.octet.filter file, i get the error:
 Usage: pdf2ps [-dPSBinaryOK] [-dPSLevel] [-dPSNoProSet] inputpdf output.ps

Look at the usage error message.  

Since it looks like ShowPDF () is a bash function, just add some steps.  

ShowPDF ()
{
  pdf2ps ${1} temp.ps
  ps2ascii temp.ps
  rm -f temp.ps
}

Or whatever floats your boat.  You might want to check the options to
ps2ascii and modify that line as well.  

-- 
Jeremy A. Gray
A434 Chemical and Life Sciences Laboratory
University of Illinois at Urbana-Champaign
[EMAIL PROTECTED]



Re: pdf2text

2001-02-05 Thread Dirk Ruediger

Hi Jim,

 When used:
 ShowPDF()
 {
 pdf2ps "$1" | ps2ascii
 }
 in mutt.octet.filter file, i get the error:
 Usage: pdf2ps [-dPSBinaryOK] [-dPSLevel] [-dPSNoProSet] inputpdf output.ps

If the prohgram needs an outputfile but you want to filte the output,
then use "-" as outputfile, it means "stdout".

ShowPDF()
{
  pdf2ps "$1" - | ps2ascii
}

Untested in this case, but should work...

 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
I _don't_ want it! ;-)

Ciao for now, Dirk
-- 
Dirk Ruediger, Rostock, Germany
 
Ninety percent of the time things turn out worse than you thought they would.
The other ten percent of the time you had no right to expect that much.
 Augustine