Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfHtmlExportOptionsFluent

OfficeIMO.Html.Pdf

Namespace
OfficeIMO.Html.Pdf
Assembly
OfficeIMO.Html.Pdf
Modifiers
static

The fluent methods of PdfHtmlExportOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • PdfHtmlExportOptionsFluent

Methods

DocumentOutput 2 overloads
public static PdfHtmlExportOptions DocumentOutput(PdfHtmlExportOptions pdfHtmlExportOptions, OfficeHtmlDocumentOptions value) #

Sets PdfHtmlExportOptions.DocumentOutput: Composed document-versus-fragment, theme, title, language, style, and newline settings.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value OfficeIMO.Html.OfficeHtmlDocumentOptions required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { DocumentOutput = value };    pdfHtmlExportOptions.DocumentOutput(value);
public static PdfHtmlExportOptions DocumentOutput(PdfHtmlExportOptions pdfHtmlExportOptions, Action<OfficeHtmlDocumentOptions> configure) #

Configures PdfHtmlExportOptions.DocumentOutput in place (creating it when not set): Composed document-versus-fragment, theme, title, language, style, and newline settings.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
configure System.Action<OfficeIMO.Html.OfficeHtmlDocumentOptions> required
Configures the value.

Returns

PdfHtmlExportOptions The same instance.
public static PdfHtmlExportOptions DocumentTitleFallback(PdfHtmlExportOptions pdfHtmlExportOptions, string value) #

Sets PdfHtmlExportOptions.DocumentTitleFallback: HTML document title used when PDF metadata does not provide one.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value string required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { DocumentTitleFallback = value };    pdfHtmlExportOptions.DocumentTitleFallback(value);
public static PdfHtmlExportOptions EmitDocumentShell(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.EmitDocumentShell: Emit a complete HTML document with doctype, html, head, and body wrappers.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { EmitDocumentShell = value };    pdfHtmlExportOptions.EmitDocumentShell(value);
public static PdfHtmlExportOptions FailOnLoss(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.FailOnLoss: Rejects fidelity loss before returning HTML or writing its destination.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { FailOnLoss = value };    pdfHtmlExportOptions.FailOnLoss(value);
public static PdfHtmlExportOptions ImageExportMode(PdfHtmlExportOptions pdfHtmlExportOptions, PdfHtmlImageExportMode value) #

Sets PdfHtmlExportOptions.ImageExportMode: Controls whether images are emitted as placeholders or embedded data URI image elements when extracted bytes are available.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value OfficeIMO.Html.Pdf.PdfHtmlImageExportMode required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { ImageExportMode = value };    pdfHtmlExportOptions.ImageExportMode(value);
public static PdfHtmlExportOptions IncludeDefaultStyles(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeDefaultStyles: Emit the shared responsive OfficeIMO theme and adapter presentation styles. Positioned output always retains the minimum structural CSS required to preserve source geometry.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeDefaultStyles = value };    pdfHtmlExportOptions.IncludeDefaultStyles(value);
public static PdfHtmlExportOptions IncludeFormWidgets(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeFormWidgets: Emit AcroForm widget placeholders. Semantic output emits a form-fields section; positioned output emits positioned form field frames.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeFormWidgets = value };    pdfHtmlExportOptions.IncludeFormWidgets(value);
public static PdfHtmlExportOptions IncludeImagePlaceholders(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeImagePlaceholders: Emit readable image output for image XObjects discovered in the logical model.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeImagePlaceholders = value };    pdfHtmlExportOptions.IncludeImagePlaceholders(value);
public static PdfHtmlExportOptions IncludeInlineEmphasis(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeInlineEmphasis: Preserve bold and italic styling in reflowed semantic text when the PDF style runs match it.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeInlineEmphasis = value };    pdfHtmlExportOptions.IncludeInlineEmphasis(value);
public static PdfHtmlExportOptions IncludeInvisibleTextInAppearanceOverlay(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeInvisibleTextInAppearanceOverlay: Include PDF text that is invisible in the rendered page in the searchable appearance overlay. Defaults to false.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeInvisibleTextInAppearanceOverlay = value };    pdfHtmlExportOptions.IncludeInvisibleTextInAppearanceOverlay(value);
public static PdfHtmlExportOptions IncludeLinkAnnotations(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeLinkAnnotations: Include link annotations. Semantic HTML places safe links on their text when possible and emits separate entries for other annotations. Positioned HTML emits positioned link frames.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeLinkAnnotations = value };    pdfHtmlExportOptions.IncludeLinkAnnotations(value);
public static PdfHtmlExportOptions IncludeMetadata(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeMetadata: Emit document metadata into the HTML head and body where useful.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeMetadata = value };    pdfHtmlExportOptions.IncludeMetadata(value);
public static PdfHtmlExportOptions IncludeOutlines(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludeOutlines: Emit PDF outlines/bookmarks as inert HTML navigation metadata when available.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludeOutlines = value };    pdfHtmlExportOptions.IncludeOutlines(value);
public static PdfHtmlExportOptions IncludePageContainers(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.IncludePageContainers: Emit page containers and page number metadata.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { IncludePageContainers = value };    pdfHtmlExportOptions.IncludePageContainers(value);
public static PdfHtmlExportOptions Language(PdfHtmlExportOptions pdfHtmlExportOptions, string? value) #

Sets PdfHtmlExportOptions.Language: Language override for the HTML root. Null preserves the PDF catalog language.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value string? required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { Language = value };    pdfHtmlExportOptions.Language(value);
public static PdfHtmlExportOptions MaxEmbeddedImageBytes(PdfHtmlExportOptions pdfHtmlExportOptions, long? value) #

Sets PdfHtmlExportOptions.MaxEmbeddedImageBytes: Maximum extracted image byte length that may be embedded into generated HTML. Set to null to disable this guard.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value long? required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { MaxEmbeddedImageBytes = value };    pdfHtmlExportOptions.MaxEmbeddedImageBytes(value);
public static PdfHtmlExportOptions MaximumAnnotationMatchWork(PdfHtmlExportOptions pdfHtmlExportOptions, long value) #

Sets PdfHtmlExportOptions.MaximumAnnotationMatchWork: Maximum annotation-action comparisons per conversion and estimated inline placement work per page.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value long required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { MaximumAnnotationMatchWork = value };    pdfHtmlExportOptions.MaximumAnnotationMatchWork(value);
public static PdfHtmlExportOptions MaximumOutputCharacters(PdfHtmlExportOptions pdfHtmlExportOptions, int? value) #

Sets PdfHtmlExportOptions.MaximumOutputCharacters: Maximum UTF-16 characters retained by generated HTML. Defaults to 32 million; set to null to disable this guard for trusted input.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value int? required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { MaximumOutputCharacters = value };    pdfHtmlExportOptions.MaximumOutputCharacters(value);
public static PdfHtmlExportOptions NewLine(PdfHtmlExportOptions pdfHtmlExportOptions, string value) #

Sets PdfHtmlExportOptions.NewLine: Newline sequence used by generated HTML.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value string required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { NewLine = value };    pdfHtmlExportOptions.NewLine(value);
public static PdfHtmlExportOptions PageRanges(PdfHtmlExportOptions pdfHtmlExportOptions, IReadOnlyList<PdfPageRange>? value) #

Sets PdfHtmlExportOptions.PageRanges: Optional selected source page ranges. When omitted, all pages are exported.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfPageRange>? required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { PageRanges = value };    pdfHtmlExportOptions.PageRanges(value);
public static PdfHtmlExportOptions Profile(PdfHtmlExportOptions pdfHtmlExportOptions, PdfHtmlProfile value) #

Sets PdfHtmlExportOptions.Profile: HTML export profile. Defaults to semantic HTML.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value OfficeIMO.Html.Pdf.PdfHtmlProfile required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { Profile = value };    pdfHtmlExportOptions.Profile(value);
ReadOptions 2 overloads
public static PdfHtmlExportOptions ReadOptions(PdfHtmlExportOptions pdfHtmlExportOptions, PdfLoadOptions? value) #

Sets PdfHtmlExportOptions.ReadOptions: Canonical semantic-read settings used when exporting an opened PdfDocument. Null uses PdfLoadOptions. PdfHtmlExportOptions.PageRanges overrides the configured PdfLoadOptions.PageSelection when both are supplied. This setting is ignored when the source is already a PdfDocumentReadResult.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value OfficeIMO.Pdf.PdfLoadOptions? required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { ReadOptions = value };    pdfHtmlExportOptions.ReadOptions(value);
public static PdfHtmlExportOptions ReadOptions(PdfHtmlExportOptions pdfHtmlExportOptions, Action<PdfLoadOptions> configure) #

Configures PdfHtmlExportOptions.ReadOptions in place (creating it when not set): Canonical semantic-read settings used when exporting an opened PdfDocument. Null uses PdfLoadOptions. PdfHtmlExportOptions.PageRanges overrides the configured PdfLoadOptions.PageSelection when both are supplied. This setting is ignored when the source is already a PdfDocumentReadResult.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
configure System.Action<OfficeIMO.Pdf.PdfLoadOptions> required
Configures the value.

Returns

PdfHtmlExportOptions The same instance.
public static PdfHtmlExportOptions Theme(PdfHtmlExportOptions pdfHtmlExportOptions, OfficeVisualThemeKind value) #

Sets PdfHtmlExportOptions.Theme: Compatibility alias for OfficeHtmlDocumentOptions.Theme.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value OfficeIMO.Drawing.OfficeVisualThemeKind required
The value.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { Theme = value };    pdfHtmlExportOptions.Theme(value);
public static PdfHtmlExportOptions UseSharedPageReadingOrder(PdfHtmlExportOptions pdfHtmlExportOptions, bool value = true) #

Sets PdfHtmlExportOptions.UseSharedPageReadingOrder: Whether semantic HTML should use the shared crop-, rotation-, and column-aware logical reading order. Positioned review output always retains source geometry.

Parameters

pdfHtmlExportOptions OfficeIMO.Html.Pdf.PdfHtmlExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfHtmlExportOptions The same instance.

Examples

// C# initializer or property                                                                 // C# fluent
new global::OfficeIMO.Html.Pdf.PdfHtmlExportOptions { UseSharedPageReadingOrder = value };    pdfHtmlExportOptions.UseSharedPageReadingOrder(value);