Extracts text from the input presentation using the specified mode.
@staticmethod
def process(input_file_name, text_extraction_mode):
...
Parameter |
Type |
Description |
input_file_name |
str |
The name of the input presentation file. |
text_extraction_mode |
TextExtractionMode |
The text extraction mode. |
Examples
#
slides_text = slidize.PresentationTextExtractor.process("pres.pptx", slidize.TextExtractionMode.UNARRANGED)
for slide_text in slides_text:
print(slide_text.text)
Exceptions
#
Exception |
Description |
RuntimeError(Proxy error(ArgumentException)) |
|
Extracts text from the input presentation using the specified mode.
@staticmethod
def process(input_stream, text_extraction_mode):
...
Parameter |
Type |
Description |
input_stream |
io.RawIOBase |
The input presentation stream. |
text_extraction_mode |
TextExtractionMode |
The text extraction mode. |
Examples
#
with open("pres.ppt", "rb") as input_stream:
slides_text = slidize.PresentationTextExtractor.process(input_stream, slidize.TextExtractionMode.ARRANGED)
for slide_text in slides_text:
print(slide_text.text)
Exceptions
#
Exception |
Description |
RuntimeError(Proxy error(ArgumentException)) |
/ |
See Also
#