Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/docs/tools/mutool-merge.rst @ 3:2c135c81b16c
MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:44:09 +0200 |
| parents | b50eed0cc0ef |
| children |
comparison
equal
deleted
inserted
replaced
| 0:6015a75abc2d | 3:2c135c81b16c |
|---|---|
| 1 mutool merge | |
| 2 ============ | |
| 3 | |
| 4 The ``merge`` command is used to pick out pages from two or more files and merge them into a new output file. | |
| 5 | |
| 6 .. code-block:: bash | |
| 7 | |
| 8 mutool merge [-o output.pdf] [-O options] input1.pdf [pages1] [input2.pdf] [pages2] ... | |
| 9 | |
| 10 ``[-o output.pdf]`` | |
| 11 The output filename. Defaults to "out.pdf" if not supplied. | |
| 12 | |
| 13 ``[-O options]`` | |
| 14 See :doc:`/reference/common/pdf-write-options`. | |
| 15 | |
| 16 ``input1.pdf`` | |
| 17 The first document. | |
| 18 | |
| 19 ``[pages1]`` | |
| 20 Comma separated list of page ranges for the first document (``input.pdf``). The first page is "1", and the last page is "N". The default is "1-N". | |
| 21 | |
| 22 ``[input2.pdf]`` | |
| 23 The second document. | |
| 24 | |
| 25 ``[pages2]`` | |
| 26 Comma separated list of page ranges for the second document (``input2.pdf``). The first page is "1", and the last page is "N". The default is "1-N". | |
| 27 | |
| 28 ``...`` | |
| 29 Indicates that we add as many additional ``[input]`` & ``[pages]`` pairs as required to merge multiple documents. |
