process
#
Converts the input presentation to HTML format.
@staticmethod
def process(input_file_name, output_file_name):
...
| Parameter |
Type |
Description |
| input_file_name |
str |
The name of the input presentation file. |
| output_file_name |
str |
The output file name. |
Examples
#
slidize.PresentationToHtmlConverter.process("pres.pptx", "pres.html")
Exceptions
#
| Exception |
Description |
| RuntimeError(Proxy error(ArgumentException)) |
|
process
#
Converts the input presentation to HTML format.
@staticmethod
def process(input_stream, output_stream):
...
| Parameter |
Type |
Description |
| input_stream |
io.RawIOBase |
The input presentation stream. |
| output_stream |
io.RawIOBase |
The output stream. |
Examples
#
with open("pres.pptx", "rb") as input_stream, io.BytesIO() as output_stream:
slidize.PresentationToHtmlConverter.process(input_stream, output_stream)
Exceptions
#
| Exception |
Description |
| RuntimeError(Proxy error(ArgumentException)) |
|
process
#
Converts the input presentation to HTML format with custom options.
@staticmethod
def process(input_file_name, output_file_name, options):
...
| Parameter |
Type |
Description |
| input_file_name |
str |
The name of the input presentation file. |
| output_file_name |
str |
The output file name. |
| options |
HtmlConverterOptions |
HTML converter options. |
Examples
#
options = slidize.HtmlConverterOptions()
options.jpeg_quality = 100
slidize.PresentationToHtmlConverter.process("pres.pptx", "pres.html", options)
Exceptions
#
| Exception |
Description |
| RuntimeError(Proxy error(ArgumentException)) |
|
process
#
Converts the input presentation to HTML format with custom options.
@staticmethod
def process(input_stream, output_stream, options):
...
| Parameter |
Type |
Description |
| input_stream |
io.RawIOBase |
The input presentation stream. |
| output_stream |
io.RawIOBase |
The output stream. |
| options |
HtmlConverterOptions |
HTML converter options. |
Examples
#
with open("pres.pptx", "rb") as input_stream, io.BytesIO() as output_stream:
options = slidize.HtmlConverterOptions()
options.jpeg_quality = 100
slidize.PresentationToHtmlConverter.process(input_stream, output_stream, options)
Exceptions
#
| Exception |
Description |
| RuntimeError(Proxy error(ArgumentException)) |
|
See Also
#