Initialize the Presentation.
(
self,
slides: list[SlidePage],
error_history: list[str],
slide_width: float,
slide_height: float,
file_path: str,
num_pages: int,
)
| 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): |
nothing calls this directly
no outgoing calls
no test coverage detected