public interface IHtml5Options extends ISaveOptions
Represents a HTML5 exporting options.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options htmlOptions = new Html5Options(); htmlOptions.setAnimateShapes(true); htmlOptions.setAnimateTransitions(true); pres.save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, htmlOptions); } finally { if (pres != null) pres.dispose(); }
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAnimateShapes()
Returns or sets shapes animation option.
|
boolean |
getAnimateTransitions()
Returns or sets transitions animation option.
|
boolean |
getDisableFontLigatures()
Gets or sets a value indicating whether text is rendered without using ligatures.
|
boolean |
getEmbedImages()
Returns or sets images embedding option.
|
INotesCommentsLayoutingOptions |
getNotesCommentsLayouting()
Deprecated.
Use SlidesLayoutOptions property. The property NotesCommentsLayouting will be removed after release of version 25.8.
|
java.lang.String |
getOutputPath()
Determines where external resources should be stored.
|
ISlidesLayoutOptions |
getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
void |
setAnimateShapes(boolean value)
Returns or sets shapes animation option.
|
void |
setAnimateTransitions(boolean value)
Returns or sets transitions animation option.
|
void |
setDisableFontLigatures(boolean value)
Gets or sets a value indicating whether text is rendered without using ligatures.
|
void |
setEmbedImages(boolean value)
Returns or sets images embedding option.
|
void |
setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)
Deprecated.
Use SlidesLayoutOptions property. The property NotesCommentsLayouting will be removed after release of version 25.8.
|
void |
setOutputPath(java.lang.String value)
Determines where external resources should be stored.
|
void |
setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackboolean getAnimateTransitions()
Returns or sets transitions animation option.
Read/write boolean.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options htmlOptions = new Html5Options(); htmlOptions.setAnimateTransitions(true); pres.save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, htmlOptions); } finally { if (pres != null) pres.dispose(); }
void setAnimateTransitions(boolean value)
Returns or sets transitions animation option.
Read/write boolean.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options htmlOptions = new Html5Options(); htmlOptions.setAnimateTransitions(true); pres.save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, htmlOptions); } finally { if (pres != null) pres.dispose(); }
boolean getAnimateShapes()
Returns or sets shapes animation option.
Read/write boolean.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options htmlOptions = new Html5Options(); htmlOptions.setAnimateShapes(true); pres.save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, htmlOptions); } finally { if (pres != null) pres.dispose(); }
void setAnimateShapes(boolean value)
Returns or sets shapes animation option.
Read/write boolean.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options htmlOptions = new Html5Options(); htmlOptions.setAnimateShapes(true); pres.save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, htmlOptions); } finally { if (pres != null) pres.dispose(); }
boolean getEmbedImages()
Returns or sets images embedding option.
Read/write boolean.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options html5Options = new Html5Options(); html5Options.setEmbedImages(false); pres.save("demo-linked-images.html", SaveFormat.Html5, html5Options); } finally { if (pres != null) pres.dispose(); }
void setEmbedImages(boolean value)
Returns or sets images embedding option.
Read/write boolean.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options html5Options = new Html5Options(); html5Options.setEmbedImages(false); pres.save("demo-linked-images.html", SaveFormat.Html5, html5Options); } finally { if (pres != null) pres.dispose(); }
java.lang.String getOutputPath()
Determines where external resources should be stored.
Read/write String.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options html5Options = new Html5Options(); html5Options.setEmbedImages(false); html5Options.setOutputPath(the_desired_path); pres.save("demo-linked-images.html", SaveFormat.Html5, html5Options); } finally { if (pres != null) pres.dispose(); }
void setOutputPath(java.lang.String value)
Determines where external resources should be stored.
Read/write String.
Example:Presentation pres = new Presentation("demo.pptx"); try { Html5Options html5Options = new Html5Options(); html5Options.setEmbedImages(false); html5Options.setOutputPath(the_desired_path); pres.save("demo-linked-images.html", SaveFormat.Html5, html5Options); } finally { if (pres != null) pres.dispose(); }
@Deprecated INotesCommentsLayoutingOptions getNotesCommentsLayouting()
Provides options that control how notes and comments is placed in exported document.
Read/write INotesCommentsLayoutingOptions.
Example:Presentation pres = new Presentation("test.pptx"); try { NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions(); notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated); Html5Options html5Options = new Html5Options(); html5Options.setOutputPath("test_pptx"); html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions); pres.save("index.html", SaveFormat.Html5, html5Options); } finally { if (pres != null) pres.dispose(); }
@Deprecated void setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)
Provides options that control how notes and comments is placed in exported document.
Read/write INotesCommentsLayoutingOptions.
Example:Presentation pres = new Presentation("test.pptx"); try { NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions(); notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated); Html5Options html5Options = new Html5Options(); html5Options.setOutputPath("test_pptx"); html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions); pres.save("index.html", SaveFormat.Html5, html5Options); } finally { if (pres != null) pres.dispose(); }
boolean getDisableFontLigatures()
Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.
Example:Presentation pres = new Presentation("pres.pptx"); try { Html5Options options = new Html5Options(); options.setDisableFontLigatures(true); // Disable ligatures in text rendering pres.save("output.html", SaveFormat.Html5, options); } finally { if (pres != null) pres.dispose(); }
void setDisableFontLigatures(boolean value)
Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.
Example:Presentation pres = new Presentation("pres.pptx"); try { Html5Options options = new Html5Options(); options.setDisableFontLigatures(true); // Disable ligatures in text rendering pres.save("output.html", SaveFormat.Html5, options); } finally { if (pres != null) pres.dispose(); }
ISlidesLayoutOptions getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { HandoutLayoutingOptions handoutLayoutingOptions = new HandoutLayoutingOptions(); handoutLayoutingOptions.setHandout(HandoutType.Handouts4Horizontal); Html5Options options = new Html5Options(); options.setSlidesLayoutOptions(handoutLayoutingOptions); pres.save("pres.html", SaveFormat.Html5, options); } finally { if (pres != null) pres.dispose(); }
void setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
Example:Presentation pres = new Presentation("pres.pptx"); try { HandoutLayoutingOptions handoutLayoutingOptions = new HandoutLayoutingOptions(); handoutLayoutingOptions.setHandout(HandoutType.Handouts4Horizontal); Html5Options options = new Html5Options(); options.setSlidesLayoutOptions(handoutLayoutingOptions); pres.save("pres.html", SaveFormat.Html5, options); } finally { if (pres != null) pres.dispose(); }
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.