Geoff Hutchison wrote:
> 
> At 2:22 PM +0200 9/8/01, Michael Heiming wrote:
> >I found 'pdftohtml' (version 0.20) works very good. Downloaded the
> >source of htdig 3.15, but I'm not sure where/how to hook a call for
> >'pdftohtml' in Display.cc, calling an external .cgi that gets the URL
> >and does the work, would be preferred.
> 
> You probably don't need to "hook a call" anywhere. You can modify the
> result templates, so for example you could have a CGI that takes
> another URL as query and outputs what you want. Then you'd modify the
> result template like so:
> 
> $(URL) -> http://www.foo.com/cgi-bin/pdfdisplay?$url=$(URL)
> 
> If you're likely to need to URL-encode or HTML encode parts of the
> URL, then you can change $(URL) to another form.
> 
> See <http://www.htdig.org/FAQ.html#q4.2> and
> <http://www.htdig.org/hts_templates.html> for more.
 

Hello Geoff,

thx for the pointer, couldn't find it in the enormous htdig docs.
I finally managed to get it working.

As some .pdf didn't work using my shinny new pdfdisplay.cgi, I ran
pdftohtml from the command line and got the following:

Error: PDF file is encrypted and cannot be displayed
Error: * Decryption support is currently not included in xpdf
Error: * due to legal restrictions: the U.S.A. still has bogus
Error: * export controls on cryptography software.
Error: Couldn't read xref tablem

Gone check if another parser works better.

Regards
 
Michael Heiming

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to