This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

pptshape

Pptshape extracts shapes from ppt file and embeds to the sphinx document as png file.

pptshape adds new directive as follow.

.. ppt-shape:: abc.png
   :pptfilename: testppt.pptx
   :shapename: shape-title

First line of the directive specifies filename of image file to be generated. :pptfilename: specifies name of PowerPoint presentaion. :shapename: specifies name of shape you specified(see Usage).

When you build sphinx project on Windows box with PowerPoint installed, pptshape opens ppt file and create png file if ppt file is newer than image files.

If the project is build on PC PowerPoint is not installed or non-Windows box, ppt-shape directive behave just like as standard image directive.

The ppt-shape directive is derived from standard image directive, so you can use directives such as :height: or :alt: image directive has.

Usage

  1. Install pywin32 package to your Windows box.

  2. Create new presentation(.ppt) and draw shape.

  3. Select the shape you wrote and display format tab. Specify shape of name the shape at ‘title’ field.

  4. Save presentation file.

  5. In conf.py file of your Sphinx project, add following configuration.

    extensions = ['pptshape.directive']
    
  6. Add following lines in your .rst files.

    .. ppt-shape:: abc.png
       :pptfilename: testppt.pptx
       :shapename: shape-title
    

    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.

  7. Build sphinx project.

Special shape name

Shapename in the pptshape directive starts with # specifies position in the PowerPoint presentation rather than title of the shape.

  1. #m.n repesents n th shape in the m th slide.
  2. #n represents n th shape through entire the ppt presentation.

Both n and m should be digit indexes pages and shapes from 1 and up. For example, #1 is for first shape of the document, and #2.1 is for first shape in the second slide.

This way is usefull for the document which cannot be modified to add shape title, or for old power point (2007 or before) which does not support shape title.

Requirements

  • Python 2.7/3.3 or later
  • pywin32 to generate png file.
Release History

Release History

0.0.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pptshape-0.0.4.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256 Source Aug 23, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting