[poppler] Non-initialized variable and question about streams
Stéphane Magnenat
nct at ysagoon.com
Sun Aug 20 10:57:57 PDT 2006
Hello,
I first filled a bug using those remarks (7903) but I have been suggested to
post on the ml instead, so here it is:
I would like to make an helper application for indexing pdf articles into a
bibliographic database. As a first step, I've made a pdf structure dumper
using popple. In the course of writing it, I've run into some problems.
The file I'm refering to is attached to the bug:
https://bugs.freedesktop.org/show_bug.cgi?id=7903
* Non-initialized variable
A stream of type strFile, returned by basetream() from a newly created PDFDoc
object, does return a non-NULL dict through getDict(), but
this dict's length field is a non-initialized variable.
Valgrind produced a warning. The can be tested by commenting line 43 and 44 of
pdfds.cpp
* Strange addFilters behaviour
Every time I try to get an uncompress substream of a Flate encoded stream
(lines 58 to 75 of pdfds.cpp), I get "Error (some int here): Unknown
compression method in flate stream". Yet the dict does have the correct
parameters and afaik is passed correctly to addFilters.
I'm using libpoppler version 0.5.3-0ubuntu1 on Ubuntu Dapper. I've been asked
wether I'm using a zlib-enabled poppler. ldd /usr/lib/libpoppler.so does say
libz is linked in, but I'm not sure that implies a zlib-enabled poppler. Is
there a way to check ?
Thanks, have a nice day,
Steph
--
http://nct.ysagoon.com
More information about the poppler
mailing list