----- Original Message -----
From: "Alexander Barkov" <[EMAIL PROTECTED]>

> It seems to be really best sollution. Taking a look into it's
> README I noticed that doc2html takes two arguments: the first
> one is absolute file name (btw relative didn't work for me)
> and the second one is content type. In the case of PDF documents
> we have to pass application/pdf. As far as indexer does not pass
> content type when calling external parser, the idea is to write a shell
script doc2html.sh like this:
>
> #!/bin/sh
> DOC2HTML=/path/to/doc2html.pl
> $DOC2HTML $1 "application/pdf" 2>/dev/null
> Hope this helps

Yeah, it works really well. Infact it accepts a third argument, the URL of
the page so I've modified your shell script as follows, using the $UDM_URL
environment variable set by mnogosearch...

#!/bin/sh
DOC2HTML=/path/to/doc2html.pl
$DOC2HTML $1 "application/pdf" $UDM_URL 2>/dev/null

It just means that if the pdf doesn't have a title, it still displays
something.

Thanks again for your help.

Richard Wall
CWN Web Developer
URL: http://www.cwn.org.uk
PGP Key ID: 0xAC33A456
***********************
LOOKING FOR A JOB? visit www.covjobs.co.uk



___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to