{ "info": { "author": "Dinu Gherman", "author_email": "gherman@darwin.in-berlin.de", "bugtrack_url": null, "classifiers": [ "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" ], "description": "`Pdfsplit` (formally named `pdfslice`) is a Python command-line tool \nand module for splitting and rearranging pages of a PDF document. \nUsing it you can pick single pages or ranges of pages from a PDF document \nand store them in a new PDF document. To do this you describe these pages \nwith the simple Python slice notation, e.g. ``0:10`` for the first ten \npages, ``-10:0`` for the last ten pages, ``0::2`` for all even pages, \n``-1::-1`` for all pages in reversed order, etc.\n\nBasically, `pdfsplit` wrapps `pyPdf `_, \na package written by Mathieu Fenniak which contains the needed \nfunctionality in its core, but does not provide a simple method of \nusing it easily from the command-line or from a Python module.\n\n\nFeatures\n++++++++\n\n- save arbitrary slices of a given PDF document in a new PDF document\n- install a Python module named ``pdfsplit.py``\n- install a Python command-line script named ``pdfsplit``\n- specify arbitrary slices using Python notation, e.g. ``0:10:2``\n- specify pages using normal page numbers (starting at 1), e.g. ``-p 1-5``\n- allow patterns for output files\n- provide a Unittest test suite\n\n\nExamples\n++++++++\n\nYou can use `pdfsplit` as a Python module e.g. like in the following\ninteractive Python session::\n\n >>> from pdfsplit import splitPages\n >>>\n >>> splitPages(\"file.pdf\", [slice(0, 1, None)]) # i.e. [0]\n written: file-split.pdf\n >>> splitPages(\"file.pdf\", [slice(None, None, 2)]) # i.e. [::2] \n written: file-split.pdf\n\nIn addition there is a script named ``pdfsplit``, which can be used \nmore easily from the system command-line like this (you can see many \nmore examples when typing ``pdfsplit -h`` on the command-line)::\n\n $ pdfsplit 0 file.pdf\n written: file-split.pdf\n $ pdfsplit ::2 file.pdf\n written: file-split.pdf\n $ pdfsplit -p -o \"%(dirname)s/%(base)s-p%(indices)s%(ext)s\" 3-5 file.pdf \n written: file-p3-5.pdf", "description_content_type": null, "docs_url": null, "download_url": "http://www.dinu-gherman.net/tmp/pdfsplit-0.4.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.dinu-gherman.net/", "keywords": "PDF,slicing pages,rearraging pages", "license": "GPL 3", "maintainer": null, "maintainer_email": null, "name": "pdfsplit", "package_url": "https://pypi.org/project/pdfsplit/", "platform": "Posix,Windows", "project_url": "https://pypi.org/project/pdfsplit/", "project_urls": { "Download": "http://www.dinu-gherman.net/tmp/pdfsplit-0.4.2.tar.gz", "Homepage": "http://www.dinu-gherman.net/" }, "release_url": "https://pypi.org/project/pdfsplit/0.4.2/", "requires_dist": null, "requires_python": null, "summary": "Split a PDF file or rearrange its pages into a new PDF file.", "version": "0.4.2" }, "last_serial": 803162, "releases": { "0.4.2": [ { "comment_text": "", "digests": { "md5": "6753e53a7650c10b2439c27a0d0664f2", "sha256": "a5ef845fa6021d36dedea0914b09da2cbcb3cc17e2fff6b0710d3c0bb5120802" }, "downloads": -1, "filename": "pdfsplit-0.4.2-py2.5.egg", "has_sig": false, "md5_digest": "6753e53a7650c10b2439c27a0d0664f2", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 8777, "upload_time": "2008-09-17T12:34:02", "url": "https://files.pythonhosted.org/packages/bc/8c/7bfd0582526020b57b083420c4b1dab68999ea92076c080479ec7b5dcaa0/pdfsplit-0.4.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "d81f80360c04d18eb1a562fc263b34e7", "sha256": "9721ebf91806c8ad3d135c6baf0425373c11850ea1a167582c1aec123fcada9f" }, "downloads": -1, "filename": "pdfsplit-0.4.2.tar.gz", "has_sig": false, "md5_digest": "d81f80360c04d18eb1a562fc263b34e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23269, "upload_time": "2008-09-17T12:34:29", "url": "https://files.pythonhosted.org/packages/ce/11/6b5c2d8b25c8b8ada642a9239792036d792929bf34decef4d9f6fedc8845/pdfsplit-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6753e53a7650c10b2439c27a0d0664f2", "sha256": "a5ef845fa6021d36dedea0914b09da2cbcb3cc17e2fff6b0710d3c0bb5120802" }, "downloads": -1, "filename": "pdfsplit-0.4.2-py2.5.egg", "has_sig": false, "md5_digest": "6753e53a7650c10b2439c27a0d0664f2", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 8777, "upload_time": "2008-09-17T12:34:02", "url": "https://files.pythonhosted.org/packages/bc/8c/7bfd0582526020b57b083420c4b1dab68999ea92076c080479ec7b5dcaa0/pdfsplit-0.4.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "d81f80360c04d18eb1a562fc263b34e7", "sha256": "9721ebf91806c8ad3d135c6baf0425373c11850ea1a167582c1aec123fcada9f" }, "downloads": -1, "filename": "pdfsplit-0.4.2.tar.gz", "has_sig": false, "md5_digest": "d81f80360c04d18eb1a562fc263b34e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23269, "upload_time": "2008-09-17T12:34:29", "url": "https://files.pythonhosted.org/packages/ce/11/6b5c2d8b25c8b8ada642a9239792036d792929bf34decef4d9f6fedc8845/pdfsplit-0.4.2.tar.gz" } ] }