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

Function initialize_poster_code

PosterAgent/gen_pptx_code.py:8–18  ·  view source on GitHub ↗
(width, height, slide_object_name, presentation_object_name, utils_functions)

Source from the content-addressed store, hash-verified

6 return re.sub(r'[^0-9a-zA-Z_]+', '_', name)
7
8def initialize_poster_code(width, height, slide_object_name, presentation_object_name, utils_functions):
9 code = utils_functions
10 code += fr'''
11# Poster: {presentation_object_name}
12{presentation_object_name} = create_poster(width_inch={width}, height_inch={height})
13
14# Slide: {slide_object_name}
15{slide_object_name} = add_blank_slide({presentation_object_name})
16'''
17
18 return code
19
20def save_poster_code(output_file, utils_functions, presentation_object_name):
21 code = utils_functions

Callers 1

generate_poster_codeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected