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.
getNotesCommentsLayouting()Provides options that control how notes and comments is placed in exported document.
setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)Provides options that control how notes and comments is placed in exported document.

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

getNotesCommentsLayouting()

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

Returns: INotesCommentsLayoutingOptions

setNotesCommentsLayouting(INotesCommentsLayoutingOptions value)

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

Parameters:

ParameterTypeDescription
valueINotesCommentsLayoutingOptions