insert_from_html method

insert_from_html

Creates slides from HTML text and inserts them to the collection at the specified position.

Returns

Added slides

def insert_from_html(self, index, html_text):
    ...
ParameterTypeDescription
indexintPosition to insert.
html_textstrHtml to add.

insert_from_html

Creates slides from HTML text and inserts them to the collection at the specified position.

Returns

Added slides

def insert_from_html(self, index, html_stream):
    ...
ParameterTypeDescription
indexintPosition to insert.
html_streamio.RawIOBaseA Stream object which will be used as a source of a HTML file.

insert_from_html

Creates slides from HTML text and inserts them to the collection at the specified position.

Returns

Added slides.

def insert_from_html(self, index, html_text, resolver, uri):
    ...
ParameterTypeDescription
indexintPosition to insert.
html_textstrHtml to add.
resolverIExternalResourceResolverA callback object used to fetch external objects. If this parameter is None all external objects will be ignored.
uristrAn URI of the specified HTML. Used to resolve relative links.

insert_from_html

Creates slides from HTML text and inserts them to the collection at the specified position.

Returns

Added slides.

def insert_from_html(self, index, html_stream, resolver, uri):
    ...
ParameterTypeDescription
indexintPosition to insert.
html_streamio.RawIOBaseA Stream object which will be used as a source of a HTML file.
resolverIExternalResourceResolverA callback object used to fetch external objects. If this parameter is None all external objects will be ignored.
uristrAn URI of the specified HTML. Used to resolve relative links.

See Also