[Poppler-bugs] [Bug 44085] pdfinfo/pdffonts cannot process >2GB files

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 23 02:24:20 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=44085

--- Comment #2 from Hin-Tak Leung <htl10 at users.sourceforge.net> 2011-12-23 02:24:20 PST ---
(In reply to comment #1)
> What's your poppler version?

git head yesterday (poppler-0.18.0-40-gebfab83). xpdf is from fedora 16's
(0.18.0-2.fc16.x86_64).

I'd say the problem is fairly obvious - grep 'Document base stream is not
seekable' gives:

poppler/PDFDoc.cc :
---------------------
GBool PDFDoc::setup(GooString *ownerPassword, GooString *userPassword) {
  str->setPos(0, -1);
  if (str->getPos() < 0)
  {
    error(-1, "Document base stream is not seekable");
    return gFalse;
---------------------

and str->getPos() returns int. While setPos() may succeed, whatever it sets for
current pos would be too large for an int.

The curious thing is why xpdf works, and pdfinfo/pdffonts don't.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list