Class HtmlSaveOptions
Save options for flow-layout HTML files.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class HtmlSaveOptions : DocumentSaveOptions
Properties
CssClassNamePrefix
Gets or sets a prefix for auto-generated CSS class names. Default is null.
Declaration
public string CssClassNamePrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CssStyleSheetType
Gets or sets how CSS is written: inline, embedded, or external. Default is Inline.
Declaration
public CssStyleSheetType CssStyleSheetType { get; set; }
Property Value
| Type | Description |
|---|---|
| CssStyleSheetType |
Encoding
Gets or sets the text encoding for the output HTML. Default is UTF-8.
Declaration
public Encoding Encoding { get; set; }
Property Value
| Type | Description |
|---|---|
| Encoding |
ExportCidUrlsForMhtmlResources
Gets or sets whether to use Content-ID URLs for MHTML resources. Default is false.
Declaration
public bool ExportCidUrlsForMhtmlResources { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportDocumentProperties
Gets or sets whether to export document properties as meta tags. Default is true.
Declaration
public bool ExportDocumentProperties { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportFontResources
Gets or sets whether to write font resources to the resource folder. Default is false.
Declaration
public bool ExportFontResources { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportFontsAsBase64
Gets or sets whether to embed fonts as base64 data URIs. Default is false.
Declaration
public bool ExportFontsAsBase64 { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportHeadersFooters
Gets or sets whether to export headers and footers. Default is true.
Declaration
public bool ExportHeadersFooters { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportListLabels
Gets or sets whether to export list numbering. Default is true.
Declaration
public bool ExportListLabels { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportRoundtripInformation
Gets or sets whether to emit data-drit-* attributes for round-trip fidelity. Default is false.
Declaration
public bool ExportRoundtripInformation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportTableBorders
Gets or sets whether to export table borders. Default is true.
Declaration
public bool ExportTableBorders { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportTextInputFormFieldAsText
Gets or sets whether to export form fields as plain text. Default is false.
Declaration
public bool ExportTextInputFormFieldAsText { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ImagesFolder
Gets or sets the folder for exported images. Default is null.
Declaration
public string ImagesFolder { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MetafileFormat
Gets or sets how metafiles are rendered. Default is Png.
Declaration
public HtmlMetafileFormat MetafileFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| HtmlMetafileFormat |
PrettyFormat
Gets or sets whether to indent the output HTML. Default is false.
Declaration
public bool PrettyFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ResolveFontNames
Gets or sets whether to resolve font aliases to actual font names. Default is false.
Declaration
public bool ResolveFontNames { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ResourceFolder
Gets or sets the folder for external resources (CSS, fonts, images). Default is null.
Declaration
public string ResourceFolder { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResourceFolderAlias
Gets or sets the URL alias for the resource folder. Default is null.
Declaration
public string ResourceFolderAlias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TableWidthUnit
Gets or sets the unit for table widths. Default is Percent.
Declaration
public HtmlElementSize TableWidthUnit { get; set; }
Property Value
| Type | Description |
|---|---|
| HtmlElementSize |