MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / create_poster

Function create_poster

utils/pptx_utils.py:1265–1276  ·  view source on GitHub ↗

Create a new Presentation object, set its slide size (e.g., 48x36 inches). :param width_inch: Float or int specifying width in inches (default 48). :param height_inch: Float or int specifying height in inches (default 36). :return: A python-pptx Presentation object.

(width_inch=48, height_inch=36)

Source from the content-addressed store, hash-verified

1263 return alignment_map.get(alignment, PP_ALIGN.LEFT)
1264
1265def create_poster(width_inch=48, height_inch=36):
1266 """
1267 Create a new Presentation object, set its slide size (e.g., 48x36 inches).
1268
1269 :param width_inch: Float or int specifying width in inches (default 48).
1270 :param height_inch: Float or int specifying height in inches (default 36).
1271 :return: A python-pptx Presentation object.
1272 """
1273 prs = Presentation()
1274 prs.slide_width = Inches(width_inch)
1275 prs.slide_height = Inches(height_inch)
1276 return prs
1277
1278def add_blank_slide(prs):
1279 """

Callers 2

deoverflowFunction · 0.50
process_leaf_sectionFunction · 0.50

Calls 1

PresentationClass · 0.50

Tested by

no test coverage detected