python-pptx库英文文档完整版.pdf

所需积分/C币:2 2018-03-26 10:37:49 31.17MB PDF

python-pptx库英文文档完整版,本站第一个发布。 不管你爱不爱,Powerpoint都被广泛应用于商务场合。文章不会争辩Powerpoint的优点,而是向你展示如何用Python使创建Powerpoint幻灯片自动化,以便去除掉在使用Powerpoint过程中一些单调乏味的工作。 幸运的是,有一个优秀的用于创建和更新PowerPoint文件的Python库:python-pptx。该库的API非常详细,所以很容易使用。唯一棘手的部分是理解PowerPoint文档的结构,包括各种总体布局和元素。一旦你了解了基础知识,自动创建你自己的PowerPoint幻灯片会相对容易很多。
Contents Feature Support 2 User Guide 3 Community Guide 4 APIDocumentation 5 Contributor Guide 119 Python module index 21 i python-pptx Documentation, Release 0.6.5 Release vo. 6.5(Installation)python-pptx is a Python library for creating and updating Power Point (.pptx)files a typical use would be generating a customized Power Point presentation from database content, downloadable by clicking a link in a web application. Several developers have used it to automate production of presentation-ready engineering status reports based On informatiOn held in their work management systeIll. It could also be used fOI making bulk updates to a library of presentations or simply to automate the production of a slide or two that would be tedious to get right by hand More information is available in the python-pptx documentation Browse examples with screenshots to get a quick idea what you can do with python-pptx Contents python-pptx Documentation, Release 0.6.5 Contents CHAPTER Feature Support python-pptr has the following capabilities, with many more on the roadmap: Round-trip any Open XML presentation (-pptx file)including all its elements Add slides Populate text placeholders. for example to create a bullet slide Add image to slide at arbitrary position and size Add textbox to a slide; manipulate text font size and bold Add table to a slide Add auto shapes(e.g polygons, flowchart shapes, etc. )to a slide Add and manipulate column, bar, line, and pie charts Access and change core document properties such as title and subject Additional capabilities arc actively bcing dcvclopcd and added on a rclcasc cadence of roughly oncc per month. If you find a feature you need that python-pptx doesn't yet have, reach out via the mailing list or issue tracker and we'll see if we can jump the queue for you to pop it in there python-pptxDocumentation,Release.6.5 Chapter 1. Feature Support CHAPTER 2 User Guide Introduction python-ppfx is a Python library for creating and updating Power Point. pptx)files A typical use would be generating a customized PowerPoint presentation from database content, downloable by clicking a link in a web application. Several developers have used it to automate production of presentation-ready engineering status reports based on information held in their work management system. It could also be used for making bulk updates to a library of presentations or simply to automate the production of a slide or two that would be tedious to get right by hand his user guide is tutorial in nature, introducing concepts along with code examples that I hope will allow you to learn what you need while addressing the real-life Power Point challenges you're working on python-pptx License TheMitLicense(mit)copyright(c)2013SteveCanny,https:/github.com/scanny Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associ ated documentation files(the"Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions The above copyright notice and this permission notice shall be included in all copies or substantial portions of the software THE SOFTWARE IS PROVIDEDAS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM. DAMAGES OR OTHER LIABILITY. WHETHER IN AN ACTION OF CONTRACT. TORT OR OTHERWISE. ARIS ING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE r python-pptx Documentation, Release 0.6.5 Installing python-pptr is hosted on PyPl, so installing with pip is simple pip install python-pptx It canl also be installed using easy_install, bul that is not recornmended easy_install python-pptx If neither pip nor easy install is available, it can be installed manually by downloading the distribution from PyPl, unpacking the tarball, and running setup.py tar xvzf python-pptx-0. 1. Oal. tar. gz ed py Llion-ppLx-0. 1, 0al python setup. py =nstall python-pprx depends on the lxml package and Fillow, the modern version of the Python Imaging Library (PIL) The charting features depend on XlsxWriter, Both pip and easy_ install will take care of satisfying these dependencies for you, but if you use the setup. py installation method you will need to install the dependencies yourself. Currently python-pptx requires Python 2.6, 2.7, 3.3 or 3.4 Dependencies Python26,2.7,3.3,or3.4 .xml Pillow Xlsx Writer(to use charting features) Getting Started a quick way to get started is by trying out some of the examples below to get a feel for how to use python-pptx The API documentation can help you with the fine details of calling signatures and behaviors Chapter 2. User Guide

...展开详情
img
bbb_sxja59f

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源