com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class EmbedAllFontsHtmlController

  • java.lang.Object
    • com.aspose.slides.EmbedAllFontsHtmlController
  • All Implemented Interfaces:
    IHtmlFormattingController


    public class EmbedAllFontsHtmlController
    extends java.lang.Object
    implements IHtmlFormattingController

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

    • Constructor Detail

      • EmbedAllFontsHtmlController

        public EmbedAllFontsHtmlController()

        Creates new instance

      • EmbedAllFontsHtmlController

        public EmbedAllFontsHtmlController(java.lang.String[] fontNameExcludeList)

        Creates new instance

        Parameters:
        fontNameExcludeList - Fonts to be excluded from embedding
    • Method Detail

      • writeDocumentStart

        public void writeDocumentStart(IHtmlGenerator generator,
                                       IPresentation presentation)

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

        Specified by:
        writeDocumentStart in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        presentation - Presentation which being currently rendered.
      • writeDocumentEnd

        public void writeDocumentEnd(IHtmlGenerator generator,
                                     IPresentation presentation)

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

        Specified by:
        writeDocumentEnd in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        presentation - Presentation which being currently rendered.
      • writeSlideStart

        public void writeSlideStart(IHtmlGenerator generator,
                                    ISlide slide)

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

        Specified by:
        writeSlideStart in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        slide - Slide which being currently rendered.
      • writeSlideEnd

        public void writeSlideEnd(IHtmlGenerator generator,
                                  ISlide slide)

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

        Specified by:
        writeSlideEnd in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        slide - Slide which being currently rendered.
      • writeShapeStart

        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.

        Specified by:
        writeShapeStart in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        shape - Shape which is about to render.
      • writeShapeEnd

        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.

        Specified by:
        writeShapeEnd in interface IHtmlFormattingController
        Parameters:
        generator - Output object.
        shape - Shape which is rendered last.
      • writeAllFonts

        public void writeAllFonts(IHtmlGenerator generator,
                                  IPresentation presentation)

        Write all fonts contained in Presentation.

        Parameters:
        generator - Output object.
        presentation - Presentation which being currently rendered.
      • writeFont

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

        Writes data as base64 into HTML document itself

        Parameters:
        generator - HTML generator
        originalFont - Font to be serialized
        substitutedFont - Substituted font (if font substitution occured), null otherwise
        fontStyle - Font style
        fontWeight - Font weight
        fontData - Font data