public class EmbedAllFontsHtmlController extends java.lang.Object implements IHtmlFormattingController
The formatting controller class to use for embedding all presentation fonts in WOFF format.
Constructor and Description |
---|
EmbedAllFontsHtmlController()
Creates new instance
|
EmbedAllFontsHtmlController(java.lang.String[] fontNameExcludeList)
Creates new instance
|
Modifier and Type | Method and Description |
---|---|
void |
writeAllFonts(IHtmlGenerator generator,
IPresentation presentation)
Write all fonts contained in
Presentation . |
void |
writeDocumentEnd(IHtmlGenerator generator,
IPresentation presentation)
Called to write html document footer.
|
void |
writeDocumentStart(IHtmlGenerator generator,
IPresentation presentation)
Called to write html document header.
|
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
|
void |
writeShapeEnd(IHtmlGenerator generator,
IShape shape)
Called before shape's rendering.
|
void |
writeShapeStart(IHtmlGenerator generator,
IShape shape)
Called before shape's rendering.
|
void |
writeSlideEnd(IHtmlGenerator generator,
ISlide slide)
Called to write html slide footer.
|
void |
writeSlideStart(IHtmlGenerator generator,
ISlide slide)
Called to write html slide header.
|
public EmbedAllFontsHtmlController()
Creates new instance
public EmbedAllFontsHtmlController(java.lang.String[] fontNameExcludeList)
Creates new instance
fontNameExcludeList
- Fonts to be excluded from embeddingpublic void writeDocumentStart(IHtmlGenerator generator, IPresentation presentation)
Called to write html document header. Called once per presentation conversion.
writeDocumentStart
in interface IHtmlFormattingController
generator
- Output object.presentation
- Presentation which being currently rendered.public void writeDocumentEnd(IHtmlGenerator generator, IPresentation presentation)
Called to write html document footer. Called once per presentation conversion.
writeDocumentEnd
in interface IHtmlFormattingController
generator
- Output object.presentation
- Presentation which being currently rendered.public void writeSlideStart(IHtmlGenerator generator, ISlide slide)
Called to write html slide header. Called once per each of slides.
writeSlideStart
in interface IHtmlFormattingController
generator
- Output object.slide
- Slide which being currently rendered.public void writeSlideEnd(IHtmlGenerator generator, ISlide slide)
Called to write html slide footer. Called once per each of slides.
writeSlideEnd
in interface IHtmlFormattingController
generator
- Output object.slide
- Slide which being currently rendered.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.
writeShapeStart
in interface IHtmlFormattingController
generator
- Output object.shape
- Shape which is about to render.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.
writeShapeEnd
in interface IHtmlFormattingController
generator
- Output object.shape
- Shape which is rendered last.public void writeAllFonts(IHtmlGenerator generator, IPresentation presentation)
Write all fonts contained in Presentation
.
generator
- Output object.presentation
- Presentation which being currently rendered.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
generator
- HTML generatororiginalFont
- Font to be serializedsubstitutedFont
- Substituted font (if font substitution occured), null otherwisefontStyle
- Font stylefontWeight
- Font weightfontData
- Font data