<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - spurious warning thrown by pdfinfo when Marked=false in MarkInfo"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107430">107430</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>spurious warning thrown by pdfinfo when Marked=false in MarkInfo
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jeffrey.Lerman@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have a lot of PDF files that were edited by Adobe Acrobat for which pdfinfo
reports a warning:

Syntax Error: Marked object is wrong type (boolean)

I believe I have located the problem: This warning is emitted when the Marked
key in the MarkInfo entry in the document catalog has a value of "false".  That
*should* be an allowed value, but pdfinfo emits the warning due to the
following code in Catalog.cc (within getMarkInfo):

    if (catDict.isDict()) {
      Object markInfoDict = catDict.dictLookup("MarkInfo");
      if (markInfoDict.isDict()) {
        Object value = markInfoDict.dictLookup("Marked");
        if (value.isBool() && value.getBool())
          markInfo |= markInfoMarked;
        else if (!value.isNull())
          error(errSyntaxError, -1, "Marked object is wrong type ({0:s})",
value.getTypeName());


There is no problem when the Marked key has a value of true, or if it is
omitted altogether.

This issue appears in poppler 0.66, and as far back as poppler 0.39.</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>