Jim Cole wrote:
>
> Michael Heiming's bits of Sun, 9 Sep 2001 translated to:
>
> >sad, but I was using xpdf 0.92, downloaded the source and recompiled
> >0.92 (just to be sure), but no go. Downloaded pdftohtml 0.31 and
> >compiled it, but again, it didn't helped.
>
> I believe pdftohtml includes its own copy of the xpdf code. Or at least
> that part of the xpdf code that it needs. So having a newer version of
> xpdf installed somewhere on your system shouldn't have anything to do with
> how pdftohtml behaves. At least that is my understanding. The version 0.31
> pdftohtml code uses version 0.90 xpdf code, which did not yet include
> decryption support.
>
> >Looks as if I had to switch to pdftotext, since it's used by
> >parse_doc.pl, which I setup in htdig.conf as external parser and this
> >works fine, but I liked the idea of having the pictures and the nice
> >html with frames in my output too..;-(
>
> If you really want pdftohtml with decryption, you can add the 0.90
> decryption patch to pdftohtml's xpdf tree. It is just a little messy
> since pdftohtml doesn't include the entire xpdf tree, but it can be
> done.
>
> Jim
Hello Jim,
you're right, I'm using pdftohtml, changed the patch
xpdf-0.90-fefe-diff (tried both available) so it applied to the
pdftohtml source, which includes much of the xpdf source. 'make all'
ran fine until (see below), seems to be a problem with the md5 header
file, it came with the patch, but sadly it doesn't work.
Think I'll switch back to the ide,a of using pdfinfo in my cgi, to
decide if it should create html if not encrypted, or just create plain
text, that's what google does always.
Thanks to everyone, who took the time to help.
Michael Heiming
> make all
cd goo; make
make[1]: Entering directory `/usr/local/src/pdftohtml_0_31/goo'
c++ -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.
-c GString.cc
c++ -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.
-c gmempp.cc
c++ -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.
-c gfile.cc
gcc -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I. -c -o gmem.o gmem.c
gcc -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I. -c -o parseargs.o parseargs.c
rm -f libGoo.a
ar rc libGoo.a GString.o gmempp.o gfile.o gmem.o parseargs.o
ranlib libGoo.a
make[1]: Leaving directory `/usr/local/src/pdftohtml_0_31/goo'
cd xpdf; make all
make[1]: Entering directory `/usr/local/src/pdftohtml_0_31/xpdf'
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Array.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Catalog.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Dict.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Error.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c FontEncoding.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c FontFile.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Gfx.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c GfxFont.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c GfxState.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Lexer.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Link.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Object.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c OutputDev.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Page.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Params.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Parser.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c PDFDoc.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c HtmlOutputDev.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c Stream.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c XRef.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c HtmlFonts.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c HtmlLinks.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -c pdftohtml.cc
c++ -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-I./../goo -I. -o pdftohtml Array.o Catalog.o Dict.o Error.o
FontEncoding.o FontFile.o Gfx.o GfxFont.o GfxState.o Lexer.o Link.o
Object.o OutputDev.o Page.o Params.o Parser.o PDFDoc.o HtmlOutputDev.o
Stream.o XRef.o HtmlFonts.o HtmlLinks.o pdftohtml.o \
-L../goo -lGoo -lm
Parser.o: In function `Parser::getEncryptedObj(Object *, int, int)':
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:169: undefined reference
to `MD5::MD5(void)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:222: undefined reference
to `MD5::update(unsigned char *, unsigned int)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:223: undefined reference
to `MD5::finalize(void)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:225: undefined reference
to `MD5::raw_digest(void)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:229: undefined reference
to `rc4ExpandKey(RC4KEY *, unsigned char const *, int)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:262: undefined reference
to `MD5::update(unsigned char *, unsigned
int)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:263: undefined reference
to `MD5::finalize(void)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:265: undefined reference
to `MD5::raw_digest(void)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:269: undefined reference
to `rc4ExpandKey(RC4KEY *, unsigned char const *, int)'
/usr/local/src/pdftohtml_0_31/xpdf/Parser.cc:272: undefined reference
to `rc4Crypt(RC4KEY *, unsigned char *, int)'
Stream.o: In function `FileStream::fillBuf(void)':
/usr/local/src/pdftohtml_0_31/xpdf/Stream.cc:552: undefined reference
to `rc4Crypt(RC4KEY *, unsigned char *, int)'
XRef.o: In function `XRef::checkUserPassword(GString *)':
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:525: undefined reference to
`rc4ExpandKey(RC4KEY *, unsigned char const *, int)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:527: undefined reference to
`rc4Crypt(RC4KEY *, unsigned char *, int)'
XRef.o: In function `XRef::MakeEncryptionKey(GString *, GString *)':
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:542: undefined reference to
`MD5::MD5(void)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:546: undefined reference to
`MD5::update(unsigned char *, unsigned int)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:553: undefined reference to
`MD5::update(unsigned char *, unsigned int)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:566: undefined reference to
`MD5::update(unsigned char *, unsigned int)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:579: undefined reference to
`MD5::update(unsigned char *, unsigned int)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:582: undefined reference to
`MD5::finalize(void)'
/usr/local/src/pdftohtml_0_31/xpdf/XRef.cc:584: undefined reference to
`MD5::raw_digest(void)'
collect2: ld returned 1 exit status
make[1]: *** [pdftohtml] Error 1
make[1]: Leaving directory `/usr/local/src/pdftohtml_0_31/xpdf'
make: *** [all] Error 2
_______________________________________________
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