Hello, 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. Finding how things are supposed to work is not easy because there is no documentation on poppler. To get to the report exposed below, I've made extensive use of valgrind. If those are not bugs, but missunderstanding from my part, please excuse me. * Non-initialized variable A stream of type strFile does return a non-NULL dict through getDict(), but this dict's length field is a non-initialized variable. This leaded me to add the check at line 43 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. It's perhaps a bug on my side, as addFilters does not seem that complex in fdo's cvs, but I can't find what. Thanks a lot, have a nice day, Steph P.S. I was using libpoppler version 0.5.3-0ubuntu1 on Ubuntu Dapper
Created attachment 6581 [details] Test-case for the bug described in the report
Created attachment 6582 [details] Makefile for the testcase
A stream of type strFile returns the dict you passed to it in the constructor, if that dict is "wrong" probably is your fault. Are you using a zlib enabled poppler? This can cause misbehaviour in Flate Streams. By the way that seems much more a thing to deal on the mailing list or irc than on bugzilla.
(In reply to comment #3) > A stream of type strFile returns the dict you passed to it in the constructor, > if that dict is "wrong" probably is your fault. The stream in question was the basestream returned by the PDFDoc object, so I supposed allocating the stream's members was the responsability of the PDFDoc constructor, did I missed something here ? > Are you using a zlib enabled poppler? This can cause misbehaviour in Flate > Streams. I'm using ubuntu deb. ldd /usr/lib/libpoppler.so does say libz is linked in. Is there another way to know wether zlib is enabled or not ? Nevertheless I don't think my libpoppler is buggy as kpdf works fine. I just probably have missed something about the API. > By the way that seems much more a thing to deal on the mailing list or irc > than on bugzilla. Ok, I will direct further question/remarks there. Thanks Steph
Is anything still required on this issue?
1.5 years and no answer to Brad, i'll take it as a "no"
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.