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
Constructor | Description |
---|---|
EmbedAllFontsHtmlController() | Creates new instance |
EmbedAllFontsHtmlController(String[] fontNameExcludeList) | Creates new instance |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
fontNameExcludeList | java.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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
presentation | IPresentation | Presentation 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
presentation | IPresentation | Presentation 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
slide | ISlide | Slide 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
slide | ISlide | Slide 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
shape | IShape | Shape 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
shape | IShape | Shape which is rendered last. |
writeAllFonts(IHtmlGenerator generator, IPresentation presentation)
public void writeAllFonts(IHtmlGenerator generator, IPresentation presentation)
Write all fonts contained in Presentation.
Parameters:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | Output object. |
presentation | IPresentation | Presentation 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:
Parameter | Type | Description |
---|---|---|
generator | IHtmlGenerator | HTML generator |
originalFont | IFontData | Font to be serialized |
substitutedFont | IFontData | Substituted font (if font substitution occured), null otherwise |
fontStyle | java.lang.String | Font style |
fontWeight | java.lang.String | Font weight |
fontData | byte[] | Font data |