HtmlGenerator

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IHtmlGenerator

public final class HtmlGenerator implements IHtmlGenerator

Html generator.

Methods

MethodDescription
addHtml(String html)Adds formatted HTML text.
addHtml(char[] html)Adds formatted HTML text.
addHtml(char[] html, int startIndex, int length)Adds formatted HTML text.
addText(String text)Adds plain text to the html files, replacing special characters with html entities.
addText(char[] text)Adds plain text to the html files, replacing special characters with html entities.
addText(char[] text, int startIndex, int length)Adds plain text to the html files, replacing special characters with html entities.
addAttributeValue(String value)Quotes attribute value and adds it to the html file.
addAttributeValue(char[] value)Quotes attribute value and adds it to the html file.
addAttributeValue(char[] value, int startIndex, int length)Quotes attribute value and adds it to the html file.
getSlideImageSize()Returns slide image size.
getSlideImageSizeUnit()Returns a unit in which slide image size is specified.
getSlideImageSizeUnitCode()Returns a css code of unit in which slide image size is specified.
getPreviousSlideIndex()Returns index of previously rendered slide or -1 if first slide is rendering.
getSlideIndex()Returns index of currently rendering slide.
getNextSlideIndex()Returns index of a slide, which will be rendered after the current slide or -1 if currently rendering last slide.

addHtml(String html)

public final void addHtml(String html)

Adds formatted HTML text.

Parameters:

ParameterTypeDescription
htmljava.lang.StringText to add.

addHtml(char[] html)

public final void addHtml(char[] html)

Adds formatted HTML text.

Parameters:

ParameterTypeDescription
htmlchar[]Text to add.

addHtml(char[] html, int startIndex, int length)

public final void addHtml(char[] html, int startIndex, int length)

Adds formatted HTML text.

Parameters:

ParameterTypeDescription
htmlchar[]Text to add.
startIndexintStart index of the portion to add.
lengthintLength of the portion to add.

addText(String text)

public final void addText(String text)

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to add.

addText(char[] text)

public final void addText(char[] text)

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

Parameters:

ParameterTypeDescription
textchar[]Text to add.

addText(char[] text, int startIndex, int length)

public final void addText(char[] text, int startIndex, int length)

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

Parameters:

ParameterTypeDescription
textchar[]Text to add.
startIndexintStart index of the portion to add.
lengthintLength of the portion to add.

addAttributeValue(String value)

public final void addAttributeValue(String value)

Quotes attribute value and adds it to the html file.

Parameters:

ParameterTypeDescription
valuejava.lang.StringAttribute value string.

addAttributeValue(char[] value)

public final void addAttributeValue(char[] value)

Quotes attribute value and adds it to the html file.

Parameters:

ParameterTypeDescription
valuechar[]Attribute value string.

addAttributeValue(char[] value, int startIndex, int length)

public final void addAttributeValue(char[] value, int startIndex, int length)

Quotes attribute value and adds it to the html file.

Parameters:

ParameterTypeDescription
valuechar[]Attribute value string.
startIndexintStart index of the portion to add.
lengthintLength of the portion to add.

getSlideImageSize()

public final Dimension2D getSlideImageSize()

Returns slide image size. Read-only java.awt.geom.Dimension2D.

Returns: java.awt.geom.Dimension2D

getSlideImageSizeUnit()

public final int getSlideImageSizeUnit()

Returns a unit in which slide image size is specified. Read-only SvgCoordinateUnit.

Returns: int

getSlideImageSizeUnitCode()

public final String getSlideImageSizeUnitCode()

Returns a css code of unit in which slide image size is specified. Read-only String.

Returns: java.lang.String

getPreviousSlideIndex()

public final int getPreviousSlideIndex()

Returns index of previously rendered slide or -1 if first slide is rendering. Read-only int.

Returns: int

getSlideIndex()

public final int getSlideIndex()

Returns index of currently rendering slide. Read-only int.

Returns: int

getNextSlideIndex()

public final int getNextSlideIndex()

Returns index of a slide, which will be rendered after the current slide or -1 if currently rendering last slide. Read-only int.

Returns: int