<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - pdfunite of a single file should not fail"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=72720">72720</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>pdfunite of a single file should not fail
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>marc.donner@gmail.com
          </td>
        </tr>

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

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

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

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

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have a large document (circa 1,000 pages) that I have used pdfseparate to
break into individual pages and that I am then using pdfunite to combine into
useful bundles of pages.  Some of the bundles are comprised of a single page.

I manage the bundle creation process using a set of data objects, so the basic
inner loop goes something like this:

pdfunite ${SOURCE_LIST} ${DESTINATION_FILE}

If ${SOURCE_LIST} happens to contain a single PDF file, then pdfunite whines
and refuses to work, so I've had to special case these items and make the
command be cp instead of pdfunite.

I argue that for clean closure pdfunite source.pdf dest.pdf should copy
source.pdf to dest.pdf

If the poppler community agrees that this is a valid proposal, I'd be happy to
submit a change list to implement the fix.</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>