<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 --- - Allow to save selected pages from documents"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=69965">69965</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Allow to save selected pages from documents
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>mkasik@redhat.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>glib frontend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=86849" name="attach_86849" title="glib: Add poppler_documents_save_pages()">attachment 86849</a> <a href="attachment.cgi?id=86849&action=edit" title="glib: Add poppler_documents_save_pages()">[details]</a></span>
glib: Add poppler_documents_save_pages()

Attached is a patch which implements function poppler_documents_save_pages(). 

This function can be useful in situation when an application needs to save
selected pages from a document or merge / split documents.

Its first parameter "documents" is array of PopplerDocument.
Second parameter "pages" is array of arrays of integers. Every 1st level array
of "pages" corresponds to a PopplerDocument on the same position in
"documents". Every second level array is terminated by -1.
Number of documents is specified in the third parameter "n_documents".
Fourth parameter is an uri to which the result will be saved.
Last parameter is return location for error.

The code is based on the "pdfunite" utility.

Regards

Marek</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>