Re: htdig: ht3.1.0b1 and PDF


Joe R. Jah (jjah@cloud.ccsf.cc.ca.us)
Tue, 15 Sep 1998 01:12:17 -0700 (PDT)


On Sun, 13 Sep 1998, Geoff Hutchison wrote:

> Date: Sun, 13 Sep 1998 09:08:55 -0400
> From: Geoff Hutchison <Geoffrey.R.Hutchison@williams.edu>
> To: "Joe R. Jah" <jjah@cloud.ccsf.cc.ca.us>
> Cc: htdig@sdsu.edu
> Subject: Re: htdig: ht3.1.0b1 and PDF

[snip]

> This will be in 3.1.0b2. But it's not really supported in 3.1.0b1. If
> someone wants to beat me to a patch, great!

I applied the following patch to PDF.cc:
_______________________________________________________________
$ diff -c PDF.cc.old PDF.cc
*** PDF.cc.old Tue Sep 15 00:40:51 1998
--- PDF.cc Tue Sep 15 00:52:03 1998
***************
*** 140,147 ****
        return;
        }

! // Use acroread as a filter to convert to PostScript.
! acroread << " -toPostScript " << pdfName << " /tmp 2>&1";

      system(acroread);
      FILE* psFile = fopen(psName, "r");
--- 140,147 ----
        return;
        }

! // Use pdftops as a filter to convert to PostScript.
! acroread << " " << pdfName << " 2>&1";

      system(acroread);
      FILE* psFile = fopen(psName, "r");
_______________________________________________________________

Now when I run htdig I get the following errors:
________________________________________________________________________
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
________________________________________________________________________

Is it the patch or some damaged PDF file?

Joe

     _/ _/_/_/ _/ ____________ __o
     _/ _/ _/ _/ ______________ _-\<,_
 _/ _/ _/_/_/ _/ _/ ......(_)/ (_)
  _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us

----------------------------------------------------------------------
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 Sat Jan 02 1999 - 16:27:48 PST