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 declares 6 methods for HtmlSaveOptions objects in .NET programs. Available methods include: HtmlSaveOptions, SaveOptions, UnifiedSaveOptions. 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, mirroring 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 (FOSS-only extra).
CacheGlyphsboolRead/WritePre-cache rasterised glyphs to speed up repeated text emission.
SaveFormatSaveFormatReadThe save format that this options instance configures.

Methods

SignatureDescription
HtmlSaveOptions()Creates HTML save options with the defaults: HTML5 output with fixed (absolutely positioned) layout.
HtmlSaveOptions(fixedLayout: bool)Creates HTML5 save options; fixedLayout chooses absolutely positioned text (true) or flowing layout (false).
HtmlSaveOptions(documentType: HtmlDocumentType)Creates save options for the given HTML flavour (XHTML or HTML5), with fixed layout.
HtmlSaveOptions(documentType: HtmlDocumentType, fixedLayout: bool)Creates save options for the given HTML flavour; fixedLayout chooses absolutely positioned text (true) or flowing layout (false).
UnifiedSaveOptions()Creates unified save options with default settings.
SaveOptions()Creates save options with default settings (the document is saved as PDF).

See Also

 English