From: Scott Gifford <sgifford@su...> - 2002-07-17 07:46:56
A client's Web site which is indexed with htdig was having problems
with some corrupt PDF files. Unfortunately, the errors indicated that
the PDF files weren't indexing properly, but not which files were
causing the problem. This patch to pdf2html.pl has it check the error
code of the PDF conversion programs, and report an error to stdout and
exit with a failure code if that program exits with a failure code:
Adding to the confusion, xpdf's pdftotext doesn't exit with an error
code when it fails to parse a document. This patch to xpdf fixes
With these two patches, the stderr output of htdig includes the
temporary filename and a URL of the document whose conversion failed,
making tracking down problems much easier.
Let me know if you have any problems, questions, etc.
Get latest updates about Open Source Projects, Conferences and News.