public class HtmlFixedSaveOptions extends FixedPageSaveOptions
SaveFormat.HTML_FIXED format.
To learn more, visit the Specify Save Options documentation article.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCssClassNamesPrefix()
Specifies prefix which is added to all class names in style.css file.
|
java.nio.charset.Charset |
getEncoding() |
boolean |
getExportEmbeddedCss()
Specifies whether the CSS (Cascading Style Sheet) should be embedded into Html document.
|
boolean |
getExportEmbeddedFonts()
Specifies whether fonts should be embedded into Html document in Base64 format.
|
boolean |
getExportEmbeddedImages()
Specifies whether images should be embedded into Html document in Base64 format.
|
boolean |
getExportEmbeddedSvg()
Specifies whether SVG resources should be embedded into Html document.
|
boolean |
getExportFormFields()
Gets indication of whether form fields are exported as interactive items (as 'input' tag) rather than converted to text or graphics.
|
int |
getFontFormat()
Gets
ExportFontFormat used for font exporting. |
boolean |
getOptimizeOutput()
Flag indicates whether it is required to optimize output.
|
int |
getPageHorizontalAlignment()
Specifies the horizontal alignment of pages in an HTML document.
|
double |
getPageMargins()
Specifies the margins around pages in an HTML document.
|
IResourceSavingCallback |
getResourceSavingCallback()
Allows to control how resources (images, fonts and css) are saved when a document is exported to fixed page Html format.
|
java.lang.String |
getResourcesFolder()
Specifies the physical folder where resources (images, fonts, css) are saved when exporting a document to Html format.
|
java.lang.String |
getResourcesFolderAlias()
Specifies the name of the folder used to construct image URIs written into an Html document.
|
boolean |
getSaveFontFaceCssSeparately()
Flag indicates whether "@font-face" CSS rules should be placed into a separate file "fontFaces.css" when a document is being saved with external stylesheet (that is, when
getExportEmbeddedCss() / setExportEmbeddedCss(boolean) is false). |
int |
getSaveFormat()
Specifies the format in which the document will be saved if this save options object is used.
|
boolean |
getShowPageBorder()
Specifies whether border around pages should be shown.
|
boolean |
getUseTargetMachineFonts()
Flag indicates whether fonts from target machine must be used to display the document.
|
void |
setCssClassNamesPrefix(java.lang.String value)
Specifies prefix which is added to all class names in style.css file.
|
void |
setEncoding(java.nio.charset.Charset value) |
void |
setExportEmbeddedCss(boolean value)
Specifies whether the CSS (Cascading Style Sheet) should be embedded into Html document.
|
void |
setExportEmbeddedFonts(boolean value)
Specifies whether fonts should be embedded into Html document in Base64 format.
|
void |
setExportEmbeddedImages(boolean value)
Specifies whether images should be embedded into Html document in Base64 format.
|
void |
setExportEmbeddedSvg(boolean value)
Specifies whether SVG resources should be embedded into Html document.
|
void |
setExportFormFields(boolean value)
Sets indication of whether form fields are exported as interactive items (as 'input' tag) rather than converted to text or graphics.
|
void |
setFontFormat(int value)
Sets
ExportFontFormat used for font exporting. |
void |
setOptimizeOutput(boolean value)
Flag indicates whether it is required to optimize output.
|
void |
setPageHorizontalAlignment(int value)
Specifies the horizontal alignment of pages in an HTML document.
|
void |
setPageMargins(double value)
Specifies the margins around pages in an HTML document.
|
void |
setResourceSavingCallback(IResourceSavingCallback value)
Allows to control how resources (images, fonts and css) are saved when a document is exported to fixed page Html format.
|
void |
setResourcesFolder(java.lang.String value)
Specifies the physical folder where resources (images, fonts, css) are saved when exporting a document to Html format.
|
void |
setResourcesFolderAlias(java.lang.String value)
Specifies the name of the folder used to construct image URIs written into an Html document.
|
void |
setSaveFontFaceCssSeparately(boolean value)
Flag indicates whether "@font-face" CSS rules should be placed into a separate file "fontFaces.css" when a document is being saved with external stylesheet (that is, when
getExportEmbeddedCss() / setExportEmbeddedCss(boolean) is false). |
void |
setSaveFormat(int value)
Specifies the format in which the document will be saved if this save options object is used.
|
void |
setShowPageBorder(boolean value)
Specifies whether border around pages should be shown.
|
void |
setUseTargetMachineFonts(boolean value)
Flag indicates whether fonts from target machine must be used to display the document.
|
equals, getColorMode, getJpegQuality, getMetafileRenderingOptions, getNumeralFormat, getPageSavingCallback, getPageSet, setColorMode, setJpegQuality, setMetafileRenderingOptions, setNumeralFormat, setPageSavingCallback, setPageSetcreateSaveOptions, createSaveOptions, getAllowEmbeddingPostScriptFonts, getDefaultTemplate, getDml3DEffectsRenderingMode, getDmlEffectsRenderingMode, getDmlRenderingMode, getExportGeneratorName, getImlRenderingMode, getMemoryOptimization, getPrettyFormat, getProgressCallback, getTempFolder, getUpdateCreatedTimeProperty, getUpdateFields, getUpdateLastPrintedProperty, getUpdateLastSavedTimeProperty, getUpdateSdtContent, getUseAntiAliasing, getUseHighQualityRendering, setAllowEmbeddingPostScriptFonts, setDefaultTemplate, setDml3DEffectsRenderingMode, setDmlEffectsRenderingMode, setDmlRenderingMode, setExportGeneratorName, setImlRenderingMode, setMemoryOptimization, setPrettyFormat, setProgressCallback, setTempFolder, setUpdateCreatedTimeProperty, setUpdateFields, setUpdateLastPrintedProperty, setUpdateLastSavedTimeProperty, setUpdateSdtContent, setUseAntiAliasing, setUseHighQualityRenderingpublic int getSaveFormat()
SaveFormat.HTML_FIXED.getSaveFormat in class SaveOptionsint value. The returned value is one of SaveFormat constants.public void setSaveFormat(int value)
SaveFormat.HTML_FIXED.setSaveFormat in class SaveOptionsvalue - The corresponding int value. The value must be one of SaveFormat constants.public boolean getShowPageBorder()
true.boolean value.public void setShowPageBorder(boolean value)
true.value - The corresponding boolean value.public int getPageHorizontalAlignment()
HtmlFixedHorizontalPageAlignment.Center.int value. The returned value is one of HtmlFixedPageHorizontalAlignment constants.public void setPageHorizontalAlignment(int value)
HtmlFixedHorizontalPageAlignment.Center.value - The corresponding int value. The value must be one of HtmlFixedPageHorizontalAlignment constants.public double getPageMargins()
Depends on the value of getPageHorizontalAlignment() / setPageHorizontalAlignment(int) property:
HtmlFixedPageHorizontalAlignment.LEFT.
HtmlFixedPageHorizontalAlignment.RIGHT.
HtmlFixedPageHorizontalAlignment.CENTER.
double value.public void setPageMargins(double value)
Depends on the value of getPageHorizontalAlignment() / setPageHorizontalAlignment(int) property:
HtmlFixedPageHorizontalAlignment.LEFT.
HtmlFixedPageHorizontalAlignment.RIGHT.
HtmlFixedPageHorizontalAlignment.CENTER.
value - The corresponding double value.public java.lang.String getResourcesFolder()
null.
Has effect only if getExportEmbeddedImages() / setExportEmbeddedImages(boolean) property is false.
When you save a Document in Html format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
If you save a document into a file and provide a file name, Aspose.Words, by default, saves the images in the same folder where the document file is saved. Use getResourcesFolder() / setResourcesFolder(java.lang.String) to override this behavior.
If you save a document into a stream, Aspose.Words does not have a folder where to save the images, but still needs to save the images somewhere. In this case, you need to specify an accessible folder by using the getResourcesFolder() / setResourcesFolder(java.lang.String) property
String value.getResourcesFolderAlias(),
setResourcesFolderAlias(java.lang.String)public void setResourcesFolder(java.lang.String value)
null.
Has effect only if getExportEmbeddedImages() / setExportEmbeddedImages(boolean) property is false.
When you save a Document in Html format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
If you save a document into a file and provide a file name, Aspose.Words, by default, saves the images in the same folder where the document file is saved. Use getResourcesFolder() / setResourcesFolder(java.lang.String) to override this behavior.
If you save a document into a stream, Aspose.Words does not have a folder where to save the images, but still needs to save the images somewhere. In this case, you need to specify an accessible folder by using the getResourcesFolder() / setResourcesFolder(java.lang.String) property
value - The corresponding String value.getResourcesFolderAlias(),
setResourcesFolderAlias(java.lang.String)public java.lang.String getResourcesFolderAlias()
null.
When you save a Document in Html format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
String value.getResourcesFolder(),
setResourcesFolder(java.lang.String)public void setResourcesFolderAlias(java.lang.String value)
null.
When you save a Document in Html format, Aspose.Words needs to save all images embedded in the document as standalone files. getResourcesFolder() / setResourcesFolder(java.lang.String) allows you to specify where the images will be saved and getResourcesFolderAlias() / setResourcesFolderAlias(java.lang.String) allows to specify how the image URIs will be constructed.
value - The corresponding String value.getResourcesFolder(),
setResourcesFolder(java.lang.String)public boolean getExportEmbeddedImages()
boolean value.public void setExportEmbeddedImages(boolean value)
value - The corresponding boolean value.public boolean getExportEmbeddedFonts()
boolean value.public void setExportEmbeddedFonts(boolean value)
value - The corresponding boolean value.public boolean getExportEmbeddedCss()
boolean value.public void setExportEmbeddedCss(boolean value)
value - The corresponding boolean value.public boolean getExportEmbeddedSvg()
true.boolean value.public void setExportEmbeddedSvg(boolean value)
true.value - The corresponding boolean value.public int getFontFormat()
ExportFontFormat used for font exporting. Default value is ExportFontFormat.WOFF.ExportFontFormat used for font exporting. The returned value is one of ExportFontFormat constants.public void setFontFormat(int value)
ExportFontFormat used for font exporting. Default value is ExportFontFormat.WOFF.value - ExportFontFormat used for font exporting. The value must be one of ExportFontFormat constants.public java.lang.String getCssClassNamesPrefix()
"aw".String value.public void setCssClassNamesPrefix(java.lang.String value)
"aw".value - The corresponding String value.public IResourceSavingCallback getResourceSavingCallback()
IResourceSavingCallback value.public void setResourceSavingCallback(IResourceSavingCallback value)
value - The corresponding IResourceSavingCallback value.public java.nio.charset.Charset getEncoding()
public void setEncoding(java.nio.charset.Charset value)
public boolean getExportFormFields()
public void setExportFormFields(boolean value)
value - Indication of whether form fields are exported as interactive items (as 'input' tag) rather than converted to text or graphics.public boolean getOptimizeOutput()
getOptimizeOutput in class FixedPageSaveOptionsboolean value.public void setOptimizeOutput(boolean value)
setOptimizeOutput in class FixedPageSaveOptionsvalue - The corresponding boolean value.public boolean getUseTargetMachineFonts()
getFontFormat() / setFontFormat(int) and getExportEmbeddedFonts() / setExportEmbeddedFonts(boolean) properties do not have effect, also getResourceSavingCallback() / setResourceSavingCallback(com.aspose.words.IResourceSavingCallback) is not fired for fonts. Default is false.boolean value.public void setUseTargetMachineFonts(boolean value)
getFontFormat() / setFontFormat(int) and getExportEmbeddedFonts() / setExportEmbeddedFonts(boolean) properties do not have effect, also getResourceSavingCallback() / setResourceSavingCallback(com.aspose.words.IResourceSavingCallback) is not fired for fonts. Default is false.value - The corresponding boolean value.public boolean getSaveFontFaceCssSeparately()
getExportEmbeddedCss() / setExportEmbeddedCss(boolean) is false). Default value is false, all CSS rules are written into single file "styles.css".
Setting this property to true restores the old behavior (separate files) for compatibility with legacy code.boolean value.public void setSaveFontFaceCssSeparately(boolean value)
getExportEmbeddedCss() / setExportEmbeddedCss(boolean) is false). Default value is false, all CSS rules are written into single file "styles.css".
Setting this property to true restores the old behavior (separate files) for compatibility with legacy code.value - The corresponding boolean value.