<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 - pdfunite introduces syntax error / illegal characters (as per pdfinfo)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103873">103873</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>pdfunite introduces syntax error / illegal characters (as per pdfinfo)
          </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>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>utils
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tom.ty89@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=135691" name="attach_135691" title="Source file">attachment 135691</a> <a href="attachment.cgi?id=135691&action=edit" title="Source file">[details]</a></span>
Source file

I split the attached pdf with `pdfseparate`. If I then merge some of the
resulted files again with `pdfunite`, "Syntax Error" / "Illegal character"(s)
are found by `pdfinfo` on the resulted files. The problem could be triggered by
page 2 and 3, other pages seem fine.

Version: 0.61.1
Steps to reproduce:
$ pdfinfo pst-book-gog.pdf >/dev/null
$ mkdir sep uni
$ cd sep/
$ pdfseparate -f 2 -l 3 ../pst-book-gog.pdf %03d.pdf
$ pdfinfo 002.pdf >/dev/null
$ pdfinfo 003.pdf >/dev/null
$ cd ../uni/
$ pdfunite ../sep/002.pdf 002.pdf
$ pdfunite ../sep/003.pdf 003.pdf
$ pdfinfo 002.pdf >/dev/null
Syntax Error (69): Illegal character '}'
Syntax Error (70): Illegal character '}'
Syntax Error (79): Illegal character '>'
$ pdfinfo 003.pdf >/dev/null
Syntax Error (120): Illegal character '{'</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>