Paper Office
paper-pptxAPI referenceenum.shapes

PROG_ID

paper-pptx 0.2.0 API reference

One-off Enum-like object for progId values.

Indicates the type of an OLE object in terms of the program used to open it.

A member of this enumeration can be used in a SlideShapes.add_ole_object() call to specify a Microsoft Office file-type (Excel, PowerPoint, or Word), which will then not require several of the arguments required to embed other object types.

Example::

from pptx.enum.shapes import PROG_ID from pptx.util import Inches

embedded_xlsx_shape = slide.shapes.add_ole_object( "workbook.xlsx", PROG_ID.XLSX, left=Inches(1), top=Inches(1) ) assert embedded_xlsx_shape.ole_format.prog_id == "Excel.Sheet.12"

Attributes

DOCX

attributeDOCX
= ('DOCX', 'Word.Document.12', 'docx-icon.emf', 965200, 609600)

progId for an embedded Word 2007+ (.docx) document.

PPTX

attributePPTX
= ('PPTX', 'PowerPoint.Show.12', 'pptx-icon.emf', 965200, 609600)

progId for an embedded PowerPoint 2007+ (.pptx) document.

XLSX

attributeXLSX
= ('XLSX', 'Excel.Sheet.12', 'xlsx-icon.emf', 965200, 609600)

progId for an embedded Excel 2007+ (.xlsx) document.

height

attributeheight

icon_filename

attributeicon_filename

progId

attributeprogId

width

attributewidth

On this page