public class HtmlOptions extends SaveOptions implements IHtmlOptions
Represents a HTML exporting options.
| Constructor and Description |
|---|
HtmlOptions()
Creates a new HtmlOptions object for saving into single HTML file.
|
HtmlOptions(ILinkEmbedController linkEmbedController)
Creates a new HtmlOptions object specifiing callback.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDeletePicturesCroppedAreas()
A boolean flag indicates if the cropped parts remain as part of the document.
|
boolean |
getDisableFontLigatures()
Gets or sets a value indicating whether text is rendered without using ligatures.
|
IHtmlFormatter |
getHtmlFormatter()
Returns or sets HTML template.
|
IInkOptions |
getInkOptions()
Provides options that control the look of Ink objects in exported document.
|
byte |
getJpegQuality()
Returns or sets a value determining the quality of the JPEG images inside PDF document.
|
int |
getPicturesCompression()
Represents the pictures compression level
|
boolean |
getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not.
|
ISlideImageFormat |
getSlideImageFormat()
Returns or sets slide image format options.
|
ISlidesLayoutOptions |
getSlidesLayoutOptions()
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
boolean |
getSvgResponsiveLayout()
True to exclude width and height attributes from svg container - that will make layout responsive.
|
void |
setDeletePicturesCroppedAreas(boolean value)
A boolean flag indicates if the cropped parts remain as part of the document.
|
void |
setDisableFontLigatures(boolean value)
Gets or sets a value indicating whether text is rendered without using ligatures.
|
void |
setHtmlFormatter(IHtmlFormatter value)
Returns or sets HTML template.
|
void |
setJpegQuality(byte value)
Returns or sets a value determining the quality of the JPEG images inside PDF document.
|
void |
setPicturesCompression(int value)
Represents the pictures compression level
|
void |
setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not.
|
void |
setSlideImageFormat(ISlideImageFormat value)
Returns or sets slide image format options.
|
void |
setSlidesLayoutOptions(ISlidesLayoutOptions value)
Gets or sets the mode in which slides are placed on the page when exporting a presentation
ISlidesLayoutOptions. |
void |
setSvgResponsiveLayout(boolean value)
True to exclude width and height attributes from svg container - that will make layout responsive.
|
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackpublic HtmlOptions(ILinkEmbedController linkEmbedController)
Creates a new HtmlOptions object specifiing callback.
linkEmbedController - Callback object which controls saving project.public HtmlOptions()
Creates a new HtmlOptions object for saving into single HTML file.
public final 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 { HtmlOptions options = new HtmlOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); options.setSlidesLayoutOptions(slidesLayoutOptions); pres.save("pres.html", SaveFormat.Html, options); } finally { if (pres != null) pres.dispose(); }
getSlidesLayoutOptions in interface IHtmlOptionspublic final 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 { HtmlOptions options = new HtmlOptions(); HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions(); slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal); options.setSlidesLayoutOptions(slidesLayoutOptions); pres.save("pres.html", SaveFormat.Html, options); } finally { if (pres != null) pres.dispose(); }
setSlidesLayoutOptions in interface IHtmlOptionspublic final IInkOptions getInkOptions()
Provides options that control the look of Ink objects in exported document.
Read-only IInkOptions
getInkOptions in interface IHtmlOptionspublic final boolean getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not. Default is false.
getShowHiddenSlides in interface IHtmlOptionspublic final void setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not. Default is false.
setShowHiddenSlides in interface IHtmlOptionspublic final IHtmlFormatter getHtmlFormatter()
Returns or sets HTML template.
Read/write IHtmlFormatter.
getHtmlFormatter in interface IHtmlOptionspublic final void setHtmlFormatter(IHtmlFormatter value)
Returns or sets HTML template.
Read/write IHtmlFormatter.
setHtmlFormatter in interface IHtmlOptionspublic final 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 { HtmlOptions options = new HtmlOptions(); options.setDisableFontLigatures(true); pres.save("presentation.html", SaveFormat.Html, options); } finally { if (pres != null) pres.dispose(); }
getDisableFontLigatures in interface IHtmlOptionspublic final 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 { HtmlOptions options = new HtmlOptions(); options.setDisableFontLigatures(true); pres.save("presentation.html", SaveFormat.Html, options); } finally { if (pres != null) pres.dispose(); }
setDisableFontLigatures in interface IHtmlOptionspublic final ISlideImageFormat getSlideImageFormat()
Returns or sets slide image format options.
Read/write ISlideImageFormat.
getSlideImageFormat in interface IHtmlOptionspublic final void setSlideImageFormat(ISlideImageFormat value)
Returns or sets slide image format options.
Read/write ISlideImageFormat.
setSlideImageFormat in interface IHtmlOptionspublic final byte getJpegQuality()
Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write byte.
Has effect only when a document contains JPEG images.
Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.
The default value is 95.
getJpegQuality in interface IHtmlOptionspublic final void setJpegQuality(byte value)
Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write byte.
Has effect only when a document contains JPEG images.
Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.
The default value is 95.
setJpegQuality in interface IHtmlOptionspublic final int getPicturesCompression()
Represents the pictures compression level
getPicturesCompression in interface IHtmlOptionspublic final void setPicturesCompression(int value)
Represents the pictures compression level
setPicturesCompression in interface IHtmlOptionspublic final boolean getDeletePicturesCroppedAreas()
A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)
getDeletePicturesCroppedAreas in interface IHtmlOptionspublic final void setDeletePicturesCroppedAreas(boolean value)
A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)
setDeletePicturesCroppedAreas in interface IHtmlOptionspublic final boolean getSvgResponsiveLayout()
True to exclude width and height attributes from svg container - that will make layout responsive. False - otherwise. Read/write boolean.
getSvgResponsiveLayout in interface IHtmlOptionspublic final void setSvgResponsiveLayout(boolean value)
True to exclude width and height attributes from svg container - that will make layout responsive. False - otherwise. Read/write boolean.
setSvgResponsiveLayout in interface IHtmlOptionsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.