Mercurial > hgrepos > Python2 > pdfautonup
comparison README.rst @ 2:7183b6f2d31b
MERGE: upstream version 1.12.1
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 16 Sep 2025 13:40:25 +0200 |
| parents | d0832175b1b2 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:78308fdbcd03 | 2:7183b6f2d31b |
|---|---|
| 1 pdfautonup 🍳 n-up the pages of pdf files, guessing layout | |
| 2 ========================================================== | |
| 3 | |
| 4 *Check out my other PDF tools:* `pdfimpose <https://framagit.org/spalax/pdfimpose>`__ | `dummypdf <https://framagit.org/spalax/dummypdf>`__. *This tool can be used online at:* `https://pdfimpose.it <https://pdfimpose.it?layout=pdfautonup>`__ | |
| 5 | |
| 6 Fit as much pages as possible, from some PDF files to a 'n-up' PDF file of a given page size, guessing the layout. | |
| 7 | |
| 8 Examples | |
| 9 -------- | |
| 10 | |
| 11 With the default paper size being A4, ``pdfautonup`` on: | |
| 12 | |
| 13 - `trigo.pdf <https://framagit.org/spalax/pdfautonup/-/raw/main/examples/trigo.pdf?inline=false>`_ gives `trigo-nup.pdf <https://framagit.org/spalax/pdfautonup/-/raw/main/examples/trigo-nup.pdf?inline=false>`_ | |
| 14 - `pcb.pdf <https://framagit.org/spalax/pdfautonup/-/raw/main/examples/pcb.pdf?inline=false>`_ gives `pcb-nup.pdf <https://framagit.org/spalax/pdfautonup/-/raw/main/examples/pcb-nup.pdf?inline=false>`_ | |
| 15 - `three-pages.pdf <https://framagit.org/spalax/pdfautonup/-/raw/main/examples/three-pages.pdf?inline=false>`_ gives `three-pages-nup.pdf <https://framagit.org/spalax/pdfautonup/-/raw/main/examples/three-pages-nup.pdf?inline=false>`_ | |
| 16 | |
| 17 See the documentation for the full command lines used to generate those examples. | |
| 18 | |
| 19 What's new? | |
| 20 ----------- | |
| 21 | |
| 22 See `changelog <https://git.framasoft.org/spalax/pdfautonup/blob/main/CHANGELOG.md>`_. | |
| 23 | |
| 24 Download and install | |
| 25 -------------------- | |
| 26 | |
| 27 See the end of list for a (quick and dirty) Debian package. | |
| 28 | |
| 29 * From sources: | |
| 30 | |
| 31 * Download: https://pypi.python.org/pypi/pdfautonup | |
| 32 * Install (in a `virtualenv`, if you do not want to mess with your distribution installation system):: | |
| 33 | |
| 34 python3 setup.py install | |
| 35 | |
| 36 * From pip:: | |
| 37 | |
| 38 pip install pdfautonup | |
| 39 | |
| 40 Note: If `PyMuPDF <https://github.com/pymupdf/PyMuPDF>`_ can be installed, you can use:: | |
| 41 | |
| 42 pip install pdfautonup[pymupdf] | |
| 43 | |
| 44 This will change the python library used to read and write PDF files (`PyMuPDF <https://github.com/pymupdf/PyMuPDF>`_ instead of `PyPDF <https://pypi.org/project/pypdf/>`_), to make pdfautonup faster. | |
| 45 | |
| 46 * Quick and dirty Debian (and Ubuntu?) package | |
| 47 | |
| 48 This requires `stdeb <https://github.com/astraw/stdeb>`_ (and `setuptools-scm <https://pypi.org/project/setuptools-scm/>`_) to be installed:: | |
| 49 | |
| 50 python3 setup.py --command-packages=stdeb.command bdist_deb | |
| 51 sudo dpkg -i deb_dist/pdfautonup-<VERSION>_all.deb | |
| 52 | |
| 53 Documentation | |
| 54 ------------- | |
| 55 | |
| 56 * The compiled documentation is available on `readthedocs <http://pdfautonup.readthedocs.io>`_ | |
| 57 | |
| 58 * To compile it from source, download and run:: | |
| 59 | |
| 60 cd doc && make html |
