public interface IHtmlOptions extends ISaveOptions
Represents a HTML exporting options.
| 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
Read/write
PicturesCompression(getPicturesCompression()/setPicturesCompression(int)). |
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
Read/write
PicturesCompression(getPicturesCompression()/setPicturesCompression(int)). |
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, setWarningCallbackIHtmlFormatter getHtmlFormatter()
Returns or sets HTML template.
Read/write IHtmlFormatter.
void setHtmlFormatter(IHtmlFormatter value)
Returns or sets HTML template.
Read/write IHtmlFormatter.
ISlideImageFormat getSlideImageFormat()
Returns or sets slide image format options.
Read/write ISlideImageFormat.
void setSlideImageFormat(ISlideImageFormat value)
Returns or sets slide image format options.
Read/write ISlideImageFormat.
boolean getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not. Default is false.
void setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not. Default is false.
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.
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.
int getPicturesCompression()
Represents the pictures compression level
Read/write PicturesCompression(getPicturesCompression()/setPicturesCompression(int)).
void setPicturesCompression(int value)
Represents the pictures compression level
Read/write PicturesCompression(getPicturesCompression()/setPicturesCompression(int)).
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) Read/write boolean.
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) Read/write boolean.
boolean getSvgResponsiveLayout()
True to exclude width and height attributes from SVG container - that will make layout responsive. False - otherwise. Read/write boolean.
void setSvgResponsiveLayout(boolean value)
True to exclude width and height attributes from SVG container - that will make layout responsive. False - otherwise. Read/write boolean.
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(); }
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(); }
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(); }
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(); }
IInkOptions getInkOptions()
Provides options that control the look of Ink objects in exported document.
Read-only IInkOptions
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.