Represent the slide page in HTML. Args: style_args (StyleArg): The style arguments for HTML conversion. **kwargs: Additional arguments. Returns: str: The HTML representation of the slide page.
(self, style_args: StyleArg = None, **kwargs)
| 1094 | return "text" |
| 1095 | |
| 1096 | def to_html(self, style_args: StyleArg = None, **kwargs) -> str: |
| 1097 | """ |
| 1098 | Represent the slide page in HTML. |
| 1099 | |
| 1100 | Args: |
| 1101 | style_args (StyleArg): The style arguments for HTML conversion. |
| 1102 | **kwargs: Additional arguments. |
| 1103 | |
| 1104 | Returns: |
| 1105 | str: The HTML representation of the slide page. |
| 1106 | """ |
| 1107 | if style_args is None: |
| 1108 | style_args = StyleArg(**kwargs) |
| 1109 | return "".join( |
| 1110 | [ |
| 1111 | "<!DOCTYPE html>\n<html>\n", |
| 1112 | (f"<title>{self.slide_title}</title>\n" if self.slide_title else ""), |
| 1113 | f'<body style="width:{self.slide_width}pt; height:{self.slide_height}pt;">\n', |
| 1114 | "\n".join([shape.to_html(style_args) for shape in self.shapes]), |
| 1115 | "</body>\n</html>\n", |
| 1116 | ] |
| 1117 | ) |
| 1118 | |
| 1119 | def to_pptc(self): |
| 1120 | """ |