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

Method __init__

utils/src/presentation.py:1169–1189  ·  view source on GitHub ↗

Initialize the Presentation.

(
        self,
        slides: list[SlidePage],
        error_history: list[str],
        slide_width: float,
        slide_height: float,
        file_path: str,
        num_pages: int,
    )

Source from the content-addressed store, hash-verified

1167 """
1168
1169 def __init__(
1170 self,
1171 slides: list[SlidePage],
1172 error_history: list[str],
1173 slide_width: float,
1174 slide_height: float,
1175 file_path: str,
1176 num_pages: int,
1177 ) -> None:
1178 """
1179 Initialize the Presentation.
1180 """
1181 self.slides = slides
1182 self.error_history = error_history
1183 self.slide_width = slide_width
1184 self.slide_height = slide_height
1185 self.num_pages = num_pages
1186 self.source_file = file_path
1187 self.prs = PPTXPre(self.source_file)
1188 self.layout_mapping = {layout.name: layout for layout in self.prs.slide_layouts}
1189 self.prs.core_properties.last_modified_by = "PPTAgent"
1190
1191 @classmethod
1192 def from_file(cls, file_path: str, config: Config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected