Html5Options

Inheritance: java.lang.Object, com.aspose.slides.SaveOptions

All Implemented Interfaces: com.aspose.slides.IHtml5Options

public class Html5Options extends SaveOptions implements IHtml5Options

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

Constructors

ConstructorDescription
Html5Options()Default constructor.

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.

Html5Options()

public Html5Options()

Default constructor.

getAnimateTransitions()

public final 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-transitions.html", SaveFormat.Html5, htmlOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: boolean

setAnimateTransitions(boolean value)

public final 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-transitions.html", SaveFormat.Html5, htmlOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
valueboolean

getAnimateShapes()

public final 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.html", SaveFormat.Html5, htmlOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: boolean

setAnimateShapes(boolean value)

public final 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.html", SaveFormat.Html5, htmlOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
valueboolean

getEmbedImages()

public final 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 final 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 final 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 final 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 final 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 final 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