<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Spurious warning in PDFDoc::checkHeader() with tiny PDF files"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105674#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Spurious warning in PDFDoc::checkHeader() with tiny PDF files"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105674">bug 105674</a>
              from <span class="vcard"><a class="email" href="mailto:evangelos@foutrelis.com" title="Evangelos Foutras <evangelos@foutrelis.com>"> <span class="fn">Evangelos Foutras</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=138490" name="attach_138490" title="Sample PDF under 1 KiB for testing">attachment 138490</a> <a href="attachment.cgi?id=138490&action=edit" title="Sample PDF under 1 KiB for testing">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>