Great. I've committed to CVS a new version of acroconv.pl.gz, which has
the missing close(INP); call, and also fixes handling of 3 digit octal
sequences in strings in the acroread PostScript output. It should show
up on the web site within an hour.
According to Erik Lyons:
> OK, got it. I did have a syntax error in the config.
>
> Seems to be working now.
>
> Thanks!
>
> Gilles Detillieux wrote:
> >
> > According to Erik Lyons:
> > > Thanks Gilles,
> > >
> > > Tried this and got "not Parsable" on every pdf.
> > >
> > > What does htdig send to this as $ARGV[0]? Shouldn't the args to the ln
> > > system command be reversed?
> > >
> > > BTW, it could use a "close(INP);" somewhere toward the end.
> >
> > Yes, there probably should be a close(INP); before the system("rm -f ...");
> > call. It's not overly critical, though, as the file does get closed
> > when the script exits. The only side-effect is that the rm will only
> > unlink the ".ps" file, and it isn't actually destroyed until the file
> > is implicitly closed on exit.
> >
> > The arguments to the ln command should definitely not be reversed.
> > The whole point of the ln command is to add a ".pdf" suffix to the
> > temporary file name generated by htdig, to keep acroread happy with the
> > file. In Perl, $ARGV[0] represents the first argument, not the program
> > name (unlike C & sh). The arguments to the script are described in
> >
> > http://www.htdig.org/attrs.html#external_parsers
> >
> > When you get a "not Parsable" error, it's because htdig can't find
> > a parser or converter for the Content-Type of the document, so it's
> > not even calling the acroconv.pl script. You probably don't have the
> > external_parsers attribute defined correctly in your htdig.conf, or else
> > your server isn't tagging PDFs correctly.
> >
> > > Gilles Detillieux wrote:
> > > > According to Erik Lyons:
> > > > > I was using acroread on 3.1.5 with pretty decent results. Now I'm trying
> > > > > 3.2.0b2. Installing xpdf on this particular Solaris system has been
> > > > > problematic and will likely be a major project. So, is there a way I can
> > > > > continue to use acroread via the external_parser variable?
> > > >
> > > > http://www.htdig.org/files/contrib/parsers/README.acroconv.pl.txt
> > > > http://www.htdig.org/files/contrib/parsers/acroconv.pl.gz
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.