HtmlFormatter

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IHtmlFormatter

public final class HtmlFormatter implements IHtmlFormatter

Represents HTML file template.

Methods

MethodDescription
createDocumentFormatter(String css, boolean showSlideTitle)Creates and returns HTML formatter for a simple document view which consists of sequences of slides one below another.
createSlideShowFormatter(String css, boolean showSlideTitle)Creates and returns HTML formatter for a simple slide show html which shows slides one after another.
createCustomFormatter(IHtmlFormattingController formattingController)Creates and returns HTML formatter for custom callback-driven html generation.

createDocumentFormatter(String css, boolean showSlideTitle)

public static HtmlFormatter createDocumentFormatter(String css, boolean showSlideTitle)

Creates and returns HTML formatter for a simple document view which consists of sequences of slides one below another.

Parameters:

ParameterTypeDescription
cssjava.lang.StringSpecifies CSS for this file.
showSlideTitlebooleanAdd slide title if there is one above slide image.

Returns: HtmlFormatter - The HtmlFormatter object.

createSlideShowFormatter(String css, boolean showSlideTitle)

public static HtmlFormatter createSlideShowFormatter(String css, boolean showSlideTitle)

Creates and returns HTML formatter for a simple slide show html which shows slides one after another.

Parameters:

ParameterTypeDescription
cssjava.lang.StringSpecifies URL of CCS file used.
showSlideTitlebooleanAdd slide title if there is one above slide image.

Returns: HtmlFormatter - The HtmlFormatter object.

createCustomFormatter(IHtmlFormattingController formattingController)

public static HtmlFormatter createCustomFormatter(IHtmlFormattingController formattingController)

Creates and returns HTML formatter for custom callback-driven html generation.

Parameters:

ParameterTypeDescription
formattingControllerIHtmlFormattingControllerCallback interface which controls html file generation.

Returns: HtmlFormatter - The HtmlFormatter object.