EmbedAllFontsHtmlController

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IHtmlFormattingController

public class EmbedAllFontsHtmlController implements IHtmlFormattingController

The formatting controller class to use for embedding all presentation fonts in WOFF format.

Constructors

ConstructorDescription
EmbedAllFontsHtmlController()Creates new instance
EmbedAllFontsHtmlController(String[] fontNameExcludeList)Creates new instance

Methods

MethodDescription
writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)Called to write html document header.
writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)Called to write html document footer.
writeSlideStart(IHtmlGenerator generator, ISlide slide)Called to write html slide header.
writeSlideEnd(IHtmlGenerator generator, ISlide slide)Called to write html slide footer.
writeShapeStart(IHtmlGenerator generator, IShape shape)Called before shape’s rendering.
writeShapeEnd(IHtmlGenerator generator, IShape shape)Called before shape’s rendering.
writeAllFonts(IHtmlGenerator generator, IPresentation presentation)Write all fonts contained in Presentation.
writeFont(IHtmlGenerator generator, IFontData originalFont, IFontData substitutedFont, String fontStyle, String fontWeight, byte[] fontData)Writes data as base64 into HTML document itself

EmbedAllFontsHtmlController()

public EmbedAllFontsHtmlController()

Creates new instance

EmbedAllFontsHtmlController(String[] fontNameExcludeList)

public EmbedAllFontsHtmlController(String[] fontNameExcludeList)

Creates new instance

Parameters:

ParameterTypeDescription
fontNameExcludeListjava.lang.String[]Fonts to be excluded from embedding

writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)

public void writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)

Called to write html document header. Called once per presentation conversion.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
presentationIPresentationPresentation which being currently rendered.

writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)

public void writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)

Called to write html document footer. Called once per presentation conversion.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
presentationIPresentationPresentation which being currently rendered.

writeSlideStart(IHtmlGenerator generator, ISlide slide)

public void writeSlideStart(IHtmlGenerator generator, ISlide slide)

Called to write html slide header. Called once per each of slides.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
slideISlideSlide which being currently rendered.

writeSlideEnd(IHtmlGenerator generator, ISlide slide)

public void writeSlideEnd(IHtmlGenerator generator, ISlide slide)

Called to write html slide footer. Called once per each of slides.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
slideISlideSlide which being currently rendered.

writeShapeStart(IHtmlGenerator generator, IShape shape)

public void writeShapeStart(IHtmlGenerator generator, IShape shape)

Called before shape’s rendering. Called once per each of shape. If this function writes anything to generator, current slide image generation will be finished, added html fragment inserted and new image will be started atop of the previous.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
shapeIShapeShape which is about to render.

writeShapeEnd(IHtmlGenerator generator, IShape shape)

public void writeShapeEnd(IHtmlGenerator generator, IShape shape)

Called before shape’s rendering. Called once per each of shape. If this function writes anything to generator, current slide image generation will be finished, added html fragment inserted and new image will be started atop of the previous.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
shapeIShapeShape which is rendered last.

writeAllFonts(IHtmlGenerator generator, IPresentation presentation)

public void writeAllFonts(IHtmlGenerator generator, IPresentation presentation)

Write all fonts contained in Presentation.

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorOutput object.
presentationIPresentationPresentation which being currently rendered.

writeFont(IHtmlGenerator generator, IFontData originalFont, IFontData substitutedFont, String fontStyle, String fontWeight, byte[] fontData)

public void writeFont(IHtmlGenerator generator, IFontData originalFont, IFontData substitutedFont, String fontStyle, String fontWeight, byte[] fontData)

Writes data as base64 into HTML document itself

Parameters:

ParameterTypeDescription
generatorIHtmlGeneratorHTML generator
originalFontIFontDataFont to be serialized
substitutedFontIFontDataSubstituted font (if font substitution occured), null otherwise
fontStylejava.lang.StringFont style
fontWeightjava.lang.StringFont weight
fontDatabyte[]Font data