From: David A. <D.J...@so...> - 2002-12-10 12:34:24
|
The doc2html.pl you sent me separately looks OK. The Magic word looks OK. That leaves the MIME-type. Is your web server configured to deliver *.doc files as "application/msword"? Run htdig with the -vvv option and see what Content-type you get for Word documents. -- David Adams Information Systems Services Southampton University ----- Original Message ----- From: "Zachary Jenks" <ZJ...@ma...> To: <D.J...@so...> Sent: Monday, December 09, 2002 9:28 PM Subject: Re: doc2html --> catdoc > Sorry to keep bothering you about this Mr. Adams but I checked the magic numbers and they appear to match: > > >From doc2html.pl: > $magic = '^\320\317\021\340'; > > >From first line of od -c filename | more: > 0000000 320 317 021 340 241 261 032 341 \0 \0 \0 \0 \0 \0 \0 \0 > > Do you have any other suggestions? > > Thanks! > > Zack > > > >>> "David Adams" <D.J...@so...> 12/05/02 08:55AM >>> > Doc2html.pl is failing to match the magic number and MIME-type of the files > you are trying to index. > > If you are certain that you have set up doc2html.pl correctly then look at > the first few characters of one of your Word documents and see if it matches > the magic number set in doc2html.pl for a Word file. You can use > > od -c filename | more > > to see the first few characters in the file. > > -- > David Adams > Information Systems Services > Southampton University > > > ----- Original Message ----- > From: "Zachary Jenks" <ZJ...@ma...> > To: <D.J...@so...> > Sent: Thursday, December 05, 2002 4:20 PM > Subject: doc2html --> catdoc > > > > Hello Mr. Adams! I am trying to get catdoc working with my doc2html > program and am receiving the following error: > > > > "UNABLE to convert" > > > > I've tested catdoc independently and it works fine on the file I'm trying > to convert. I've added the catdoc location (usr/local/bin/catdoc) to my > doc2html program. My doc2html program works great at converting pdf files. > I am using the appropriate syntax on the command line: "./doc2hmlt.pl > /location to word file application/msword". I've tried reinstalling > doc2html and it still doesn't work with catdoc. Do you have any > suggestions? > > > > Thanks! > > > > Zack > > > > > > > > > > |