{ "info": { "author": "Phil Booth", "author_email": "pmbooth@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "pdfpages\n========\n\n.. image:: https://img.shields.io/pypi/v/pdfpages.svg?style=flat-square :https://pypi.python.org/pypi/pdfpages: \n.. image:: https://img.shields.io/github/license/philbooth/pdfpages.svg?style=flat-square :target: https://opensource.org/licenses/MIT\n\nExtract specific pages from PDF documents.\n\n* `What is it?`_\n* `How do I install it?`_\n* `How do I run it on the command line?`_\n* `How do I call it from python code?`_\n* `What license is it released under?`_\n\nWhat is it?\n-----------\n\nA python package\nthat extracts pages from PDF documents\nand writes them to a fresh PDF.\n\nHow do I install it?\n--------------------\n\nVia pip::\n\n pip install pdfpages\n\nOr if you just want the git repo::\n\n git clone git@github.com:philbooth/pdfpages.git\n\nHow do I run it on the command line?\n------------------------------------\n\n::\n\n pdfpages -o out.pdf in.pdf\n\nThe ``-o`` option\nis used to specify\nthe output path\nand the final argument\nis the path to the input document.\nYou can specify\nmultiple input documents\nby listing further paths\nat the end of the command::\n\n pdfpages -o out.pdf in1.pdf in2.pdf\n pdfpages -o out.pdf in/*.pdf\n\nWithout other arguments,\nthe default behaviour is\nto extract the first page\nfrom each input document\nand write the result\nto the output PDF.\n\nIf you want to extract specific pages,\nyou can use the ``-p`` option.\nFor instance,\nto extract just the second page\nfrom each input document\nyou woud run::\n\n pdfpages -p 2 -o out.pdf in/*.pdf\n\nOr to extract the second and third pages\nfrom each document::\n\n pdfpages -p 2 3 -o out.pdf in/*.pdf\n\nYou can also use\nthe ``-f`` and ``-c`` options\nto specify ranges of page numbers.\nFor instance,\nto extract the first hundred pages\nfrom each document::\n\n pdfpages -f 1 -c 100 -o out.pdf in/*.pdf\n\nOr to extract\nthe second hundred pages::\n\n pdfpages -f 101 -c 100 -o out.pdf in/*.pdf\n\nYou can exclude specific pages\nfrom these ranges\nwith the ``-e`` option.\nFor example,\nto exclude the third page\nfrom the first five pages\nof each input document::\n\n pdfpages -f 1 -c 5 -e 3 -o out.pdf in/*.pdf\n\nFinally,\nyou can see the usage information\nat any time\nusing the ``-h`` option::\n\n python pdfpages.py -h\n\nHow do I call it from python code?\n----------------------------------\n\n::\n\n import pdfpages\n\n pdfpages.extract(in_files, out_file, pages, exclude_pages)\n\n* ``in_files``:\n A tuple containing files\n opened for binary reading\n (mode ``\"rb\"``).\n\n* ``out_file``:\n A file\n opened for binary writing\n (mode ``\"wb\"``).\n\n* ``pages``:\n A tuple containing page numbers\n to extract\n (integers).\n\n* ``exclude_pages``:\n An optional tuple containing page numbers\n to exclude from extraction\n (integers).\n Defaults to an empty tuple.\n\nWhat license is it released under?\n----------------------------------\n\n`MIT `_", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/philbooth/pdfpages/archive/0.1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/philbooth/pdfpages", "keywords": "pdf,extract,filter,copy,duplicate,pages", "license": "", "maintainer": "", "maintainer_email": "", "name": "pdfpages", "package_url": "https://pypi.org/project/pdfpages/", "platform": "", "project_url": "https://pypi.org/project/pdfpages/", "project_urls": { "Download": "https://github.com/philbooth/pdfpages/archive/0.1.0.tar.gz", "Homepage": "https://github.com/philbooth/pdfpages" }, "release_url": "https://pypi.org/project/pdfpages/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Extract pages from PDF documents", "version": "0.1.0" }, "last_serial": 3163619, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4c1232b83a519a5bfeb6a3be66e28bd3", "sha256": "efe90a81891d67f10ea0d0dc8dab328422c0b8231792a1c049c71ec439e6f053" }, "downloads": -1, "filename": "pdfpages-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4c1232b83a519a5bfeb6a3be66e28bd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3177, "upload_time": "2017-09-10T18:56:03", "url": "https://files.pythonhosted.org/packages/79/ee/44ae1743687fa3d92bd5990c4f130743cdce865b332252bcae4892bf8076/pdfpages-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c1232b83a519a5bfeb6a3be66e28bd3", "sha256": "efe90a81891d67f10ea0d0dc8dab328422c0b8231792a1c049c71ec439e6f053" }, "downloads": -1, "filename": "pdfpages-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4c1232b83a519a5bfeb6a3be66e28bd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3177, "upload_time": "2017-09-10T18:56:03", "url": "https://files.pythonhosted.org/packages/79/ee/44ae1743687fa3d92bd5990c4f130743cdce865b332252bcae4892bf8076/pdfpages-0.1.0.tar.gz" } ] }