On Sun, 13 Sep 1998, Geoff Hutchison wrote:

> Date: Sun, 13 Sep 1998 09:08:55 -0400
> From: Geoff Hutchison <[EMAIL PROTECTED]>
> To: "Joe R. Jah" <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> 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        [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to