{ "info": { "author": "Atsuo Ishimoto", "author_email": "ishimoto@gembook.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Documentation" ], "description": "pptshape\n============================\n\nPptshape extracts shapes from ppt file and embeds to the sphinx document as png file.\n\npptshape adds new directive as follow.\n\n::\n\n .. ppt-shape:: abc.png\n :pptfilename: testppt.pptx\n :shapename: shape-title\n\nFirst line of the directive specifies filename of image file to be generated. `:pptfilename:` specifies \nname of PowerPoint presentaion. `:shapename:` specifies name of shape you specified(see Usage).\n\nWhen you build sphinx project on Windows box with PowerPoint installed, pptshape opens ppt file \nand create png file if ppt file is newer than image files.\n\nIf the project is build on PC PowerPoint is not installed or non-Windows box, ppt-shape directive \nbehave just like as standard image directive.\n\nThe ppt-shape directive is derived from standard image directive, so you can use directives such as \n`:height:` or `:alt:` image directive has.\n\n\nUsage\n--------------------\n\n1. Install `pywin32 `_ package to your Windows box.\n\n2. Create new presentation(.ppt) and draw shape.\n\n3. Select the shape you wrote and display format tab. Specify shape of name the shape at 'title' field.\n\n4. Save presentation file.\n\n5. In `conf.py` file of your Sphinx project, add following configuration.\n\n .. code-block:: python\n\n extensions = ['pptshape.directive']\n\n6. Add following lines in your .rst files.\n\n ::\n\n .. ppt-shape:: abc.png\n :pptfilename: testppt.pptx\n :shapename: shape-title\n\n\n `abc.png` is a name of png file to be created. `:pptfilename:` specifies name of PowerPoint presentaion. `:shapename:` specifies name of shape you specified at step 3.\n\n7. Build sphinx project.\n\n\nSpecial shape name\n------------------\n\nShapename in the pptshape directive starts with `#` specifies\nposition in the PowerPoint presentation rather than title of the shape.\n\n1. `#m.n` repesents `n` th shape in the `m` th slide.\n\n2. `#n` represents `n` th shape through entire the ppt presentation.\n\nBoth `n` and `m` should be digit indexes pages and shapes from 1 and up.\nFor example, `#1` is for first shape of the document,\nand `#2.1` is for first shape in the second slide.\n\nThis way is usefull for the document which cannot be modified to add\nshape title, or for old power point (2007 or before) which does not\nsupport shape title.\n\n\nRequirements\n============\n\n* Python 2.7/3.3 or later\n\n* pywin32 to generate png file.\n\nCopyright \n=========================\n\nCopyright (c) 2013, 2014 Atsuo Ishimoto\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/atsuoishimoto/pptshape", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "pptshape", "package_url": "https://pypi.org/project/pptshape/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pptshape/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/atsuoishimoto/pptshape" }, "release_url": "https://pypi.org/project/pptshape/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Extract images from PowerPoint presentation files for Sphinx.", "version": "0.0.4" }, "last_serial": 1199547, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "8b913e2bece7515bf7be5e275abb2422", "sha256": "eb2df7eefc59c962ea5159341ea3f8f54c0fbadfca77d977086abc56009ea3ec" }, "downloads": -1, "filename": "pptshape-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8b913e2bece7515bf7be5e275abb2422", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4021, "upload_time": "2014-01-24T06:11:53", "url": "https://files.pythonhosted.org/packages/f0/c8/ffdeaa92827b3718b31139417489a1c7017a21ff7fd8f388ef6bafc8ca56/pptshape-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "516e5c5c071870d4bb62999a957901fe", "sha256": "7b3d8b805de5c81203c89c13404fb2af6ae15fb0effda56a0fbe3ee12e42a321" }, "downloads": -1, "filename": "pptshape-0.0.3.tar.gz", "has_sig": false, "md5_digest": "516e5c5c071870d4bb62999a957901fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4335, "upload_time": "2014-03-28T07:24:26", "url": "https://files.pythonhosted.org/packages/56/06/473c788fb05cc14f187e42d7352a4e2496b5e0b8e2d0cea33135f06ed1b4/pptshape-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "cb03980cd996af477e23621de41b8cbf", "sha256": "607f6d53794da8e66e4975c70e4e401030bacacf8ae7e0c28fb4203015981b1b" }, "downloads": -1, "filename": "pptshape-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cb03980cd996af477e23621de41b8cbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5036, "upload_time": "2014-08-23T08:00:34", "url": "https://files.pythonhosted.org/packages/2a/36/95b578f3fbafc71d137ccfd7e15a777f4f83dc359faaf1f0a143a1e460d8/pptshape-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb03980cd996af477e23621de41b8cbf", "sha256": "607f6d53794da8e66e4975c70e4e401030bacacf8ae7e0c28fb4203015981b1b" }, "downloads": -1, "filename": "pptshape-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cb03980cd996af477e23621de41b8cbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5036, "upload_time": "2014-08-23T08:00:34", "url": "https://files.pythonhosted.org/packages/2a/36/95b578f3fbafc71d137ccfd7e15a777f4f83dc359faaf1f0a143a1e460d8/pptshape-0.0.4.tar.gz" } ] }