HtmlSaveOptions

HtmlSaveOptions

Overview

HtmlSaveOptions is a class in Aspose.PDF FOSS for .NET. Inherits from: UnifiedSaveOptions.

Options for saving a PDF document as HTML.

This class provides 4 methods for working with HtmlSaveOptions objects in .NET programs. Available methods include: HtmlSaveOptions. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: AdditionalMarginWidthInPoints, ApsIntermediateFileIfAny, BatchSize, CacheGlyphs, CloseResponse, CompressSvgGraphicsIfAny, and 27 more.

Properties

NameTypeAccessDescription
AdditionalMarginWidthInPointsintRead/WriteExtra width (PDF points) added to each page’s right margin in the output HTML.
BatchSizeintRead/WriteHow many PDF pages are processed per output batch when SplitIntoPages is in effect.
CompressSvgGraphicsIfAnyboolRead/WriteCompress SVG graphics if any are present.
ConvertMarkedContentToLayersboolRead/WriteConvert marked-content sections to HTML layers.
DefaultFontNamestringRead/WriteDefault font name used when a glyph has no resolvable face.
DocumentTypeHtmlDocumentTypeRead/WriteHTML doc-type emitted by the writer.
ExplicitListOfSavedPagesint[]Read/Write1-based page numbers to render.
FixedLayoutboolRead/WriteUse fixed (absolute) layout when emitting text positions.
FlowLayoutParagraphFullWidthboolRead/WriteMake flow-layout paragraphs span the full page width.
FontSourcesAspose.Pdf.Text.FontSourceCollectionReadFont sources consulted when embedding fonts in the HTML output.
IgnoreResourceFontErrorsboolRead/WriteSuppress font-resource errors at conversion time and substitute.
IgnoredTextFontSizeSystem.Nullable<float>Read/WriteGlyphs whose font size is at or below this value are dropped from the output.
ImageResolutionintRead/WriteDPI used when rasterising vector or font content.
MinimalLineWidthfloatRead/WriteMinimum stroke width below which lines are widened.
PreventGlyphsGroupingboolRead/WriteIf true, glyphs are emitted individually rather than grouped into runs.
RenderTextAsImageboolRead/WriteRender text fragments as raster images instead of selectable text.
SaveFullFontboolRead/WriteEmbed full font tables instead of subsetting.
SimpleTextboxModeGroupingboolRead/WriteGroup adjacent glyphs into a single text-box for a cleaner DOM.
SplitCssIntoPagesboolRead/WriteWhen SplitIntoPages is true, also split the CSS per page.
SplitIntoPagesboolRead/WriteEmit one HTML file per page instead of a single concatenated document.
TitlestringRead/WriteHTML <title> element.
PngIntermediateFileIfAnystringRead/WritePath to a PNG intermediate file (debug artifact, parity with HtmlLoadOptions.ApsIntermediateFileIfAny / XpsIntermediateFileIfAny).
XpsIntermediateFileIfAnystringRead/WritePath to an XPS intermediate file (debug artifact).
ApsIntermediateFileIfAnystringRead/WritePath to an APS intermediate file (debug artifact).
TryMergeFragmentsboolRead/WriteMerge adjacent text fragments into a single run when possible.
UseZOrderboolRead/WriteHonour z-order of overlapping content when emitting HTML.
ExtractOcrSublayerOnlyboolRead/WriteGets or sets the extract ocr sublayer only.
CloseResponseboolRead/WriteGets or sets the close response.
SaveFullPathboolRead/WriteGets or sets the save full path.
WarningHandlerIWarningCallbackRead/WriteWarning handler invoked during serialisation.
WarningHandlerNamestringRead/WriteLegacy string-typed warning-handler hook.
CacheGlyphsboolRead/WritePre-cache rasterised glyphs to speed up repeated text emission.
SaveFormatSaveFormatReadThe save format that this options instance configures.

Methods

SignatureDescription
HtmlSaveOptions()Calls HtmlSaveOptions on this HtmlSaveOptions instance.
HtmlSaveOptions(fixedLayout: bool)Calls HtmlSaveOptions(fixedLayout) on this HtmlSaveOptions instance.
HtmlSaveOptions(documentType: HtmlDocumentType)Calls HtmlSaveOptions(documentType) on this HtmlSaveOptions instance.
HtmlSaveOptions(documentType: HtmlDocumentType, fixedLayout: bool)Calls HtmlSaveOptions(documentType, fixedLayout) on this HtmlSaveOptions instance.

See Also