htdig: Indexing PDFs using 'xpdf' instead of Acroread


Rick Wiggins (wiggins@gwis.com)
Mon, 11 Jan 1999 10:35:52 -0500


All,

I tried using Acroread on my FreeBSD system (using Linux compatibility mode
since Acroread isn't available for FreeBSD), but wasn't having any luck. I
found the 'xpdf' program available at http://www.foolabs.com/xpdf/ which
comes with a 'pdftops' utility program. To use this program, I had to
modify 'htdig' so that it wouldn't include the '-toPostScript' command
option and would completely specify the output filename, like this:

# diff PDF.cc.orig PDF.cc
149c149
< acroread << " -toPostScript " << pdfName << " " << tmpdir << " 2>&1";

---
>     acroread << " " << pdfName << " " << psName << " 2>&1";

Perhaps future versions of 'htdig' can generalize the 'pdf_parser' attribute such that this modification would not be necessary when using programs other than Acroread. Just a thought...

Rick

---------------------------------------------------------------------- To unsubscribe from the htdig mailing list, send a message to htdig-request@sdsu.edu containing the single word "unsubscribe" in the body of the message.



This archive was generated by hypermail 2.0b3 on Wed Jan 13 1999 - 09:13:04 PST