IHtml5Options

All Implemented Interfaces: com.aspose.slides.ISaveOptions

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();
 }

Methods

MethodDescription
getAnimateTransitions()Returns or sets transitions animation option.
setAnimateTransitions(boolean value)Returns or sets transitions animation option.
getAnimateShapes()Returns or sets shapes animation option.
setAnimateShapes(boolean value)Returns or sets shapes animation option.
getEmbedImages()Returns or sets images embedding option.
setEmbedImages(boolean value)Returns or sets images embedding option.
getOutputPath()Determines where external resources should be stored.
setOutputPath(String value)Determines where external resources should be stored.

getAnimateTransitions()

public abstract boolean 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();
 }

Returns: boolean

setAnimateTransitions(boolean value)

public abstract 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();
 }

Parameters:

ParameterTypeDescription
valueboolean

getAnimateShapes()

public abstract 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();
 }

Returns: boolean

setAnimateShapes(boolean value)

public abstract 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();
 }

Parameters:

ParameterTypeDescription
valueboolean

getEmbedImages()

public abstract 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();
 }

Returns: boolean

setEmbedImages(boolean value)

public abstract 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();
 }

Parameters:

ParameterTypeDescription
valueboolean

getOutputPath()

public abstract 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();
 }

Returns: java.lang.String

setOutputPath(String value)

public abstract void setOutputPath(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();
 }

Parameters:

ParameterTypeDescription
valuejava.lang.String