[Poppler-bugs] [Bug 105674] Spurious warning in PDFDoc::checkHeader() with tiny PDF files

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 2 11:54:04 UTC 2018


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

--- Comment #3 from Evangelos Foutras <evangelos at foutrelis.com> ---
Created attachment 138490
  --> https://bugs.freedesktop.org/attachment.cgi?id=138490&action=edit
Sample PDF under 1 KiB for testing

I tried to mimic what other parts of the code did, but you're right in that it
can be made much more readable. I'll have another go at it with this in mind.

Attaching a sample PDF for testing purposes (generated by one of pdf2djvu's
tests).

The warning can be seen by running pdfinfo on it (outputs a warning and fails
to parse the document's PDF version):

  $ pdfinfo test-empty-outline.pdf 
  Syntax Warning: EOF while reading header (continuing anyway)
  [..]
  PDF version:    0.0

-- 
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/20180402/5a304b7e/attachment.html>


More information about the Poppler-bugs mailing list