pdfnup 0.3.0
Layout multiple pages per sheet of a PDF document.
Latest Version: 0.4.1
Pdfnup is a Python module and command-line tool for layouting multiple pages per sheet of a PDF document. Using it you can take a PDF document and create a new PDF document from it where each page contains a number of minimized pages from the original PDF file.
Right now pdfnup should be used on documents with all pages the same size, and half square page numbers per sheet work best on paper sizes of the ISO A series.
Basically, pdfnup wrapps pyPdf, a package written by Mathieu Fenniak, which does not provide tools like this for using the core functionality easily from the command-line or from a Python module.
Features
- save minimized pages of a given PDF document in a new PDF document
- allow n pages per sheet, with n being square or half square
- allow customizing of layout order, both horizontally and vertically
- allow patterns for output files
- install a Python module named pdfnup.py
- install a Python command-line script named pdfnup
- provide a Unittest test suite
Examples
You can use pdfnup as a Python module e.g. like in the following interactive Python session:
>>> from pdfnup import generateNup
>>>
>>> generateNup("file.pdf", 8)
written: file-8up.pdf
>>> generateNup("file.pdf", 8, dirs="LD")
written: file-8up.pdf
In addition there is a script named pdfnup, which can be used more easily from the system command-line like this (you can see many more examples when typing pdfnup -h on the command-line):
$ pdfnup file.pdf written: file-4up.pdf $ pdfnup -n 8 file.pdf written: file-8up.pdf $ pdfnup -n 8 -l LD file.pdf written: file-8up.pdf $ pdfnup -n 9 /path/file[12].pdf written: /path/file1-9up.pdf written: /path/file2-9up.pdf $ pdfnup -n 8 -o "%(dirname)s/foo.pdf" /path/file.pdf written: /path/foo.pdf
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| pdfnup-0.3.0-py2.5.egg (md5) | Python Egg | 2.5 | 2008-09-24 | 10KB | 573 |
| pdfnup-0.3.0.tar.gz (md5) | Source | 2008-09-24 | 40KB | 392 | |
- Author: Dinu Gherman
- Home Page: http://www.dinu-gherman.net/
- Download URL: http://www.dinu-gherman.net/tmp/pdfnup-0.3.0.tar.gz
- Keywords: PDF,minimizig pages
- License: GPL 3
- Platform: Posix,Windows
-
Categories
- Development Status :: 4 - Beta
- Environment :: Console
- Intended Audience :: Developers
- Intended Audience :: End Users/Desktop
- License :: OSI Approved :: GNU General Public License (GPL)
- Operating System :: MacOS :: MacOS X
- Operating System :: Microsoft :: Windows
- Operating System :: POSIX
- Programming Language :: Python
- Topic :: Printing
- Topic :: Utilities
- Package Index Owner: gherman
- DOAP record: pdfnup-0.3.0.xml
