[Poppler-bugs] [Bug 95061] New: PDF hint table fails to load if PDFDoc is opened with stream start offset != 0
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 22 08:16:11 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=95061
Bug ID: 95061
Summary: PDF hint table fails to load if PDFDoc is opened with
stream start offset != 0
Product: poppler
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: seksfemfire at gmail.com
Created attachment 123139
--> https://bugs.freedesktop.org/attachment.cgi?id=123139&action=edit
Respect parent stream start offset when creating substream
The problem is that hints.cc create a substream from the original stream given
to the PDFDoc class. The substream does not include the stream start offset in
the original stream.
To reproduce:
1. Create stream with startA != 0
2. Create PDFDoc with stream as output.
3. If PDF has hints tables it will output warnings:
Syntax Warning: Failed parsing hints table object
Syntax Warning: Failed to get object num from hint tables for page 1
Syntax Warning: Failed parsing page 1 using hint tables
Syntax Warning: Failed to get object num from hint tables for page 1
Syntax Warning: Failed parsing page 1 using hint tables
Syntax Warning: Failed to get object num from hint tables for page 1
The attached patch fixes the issue.
--
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/20160422/be9405a9/attachment.html>
More information about the Poppler-bugs
mailing list