[Poppler-bugs] [Bug 103469] Unable to open PDF File - "Couldn't find trailer dictionary"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 31 10:46:29 UTC 2017


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

--- Comment #4 from Adrian Johnson <ajohnson at redneon.com> ---
I think it is safe to assume that gen numbers will always fit in an int. The
PDF spec says gen numbers must start at 0 and be incremented on each save so it
should not be possible to get > 32-bit gen numbers without the PDF file
becoming impracticably huge.

I suggest accept 8-byte fields but store it in an int and print an error if is
too big. I'm confident we will never see that error reported.

But if you really want to use a 64-bit:

-  int gen;
+  Goffset gen;

use long long. Goffset is for file offsets.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171031/606e1c6f/attachment.html>


More information about the Poppler-bugs mailing list