Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfLogicalMarkdownOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Options for rendering a logical PDF read model as Markdown.

Inheritance

  • object
  • PdfLogicalMarkdownOptions

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Constructors

public PdfLogicalMarkdownOptions() #

Properties

public bool IncludePageSeparators { get; set; } #

Emit horizontal-rule separators between logical pages.

public bool IncludeImagePlaceholders { get; set; } #

Emit readable placeholder text for images that are not exported as Markdown images. False by default, so an image that cannot be carried over never adds text to the document body.

public PdfLogicalMarkdownImageExportMode ImageExportMode { get; set; } #

How images are written. The default embeds each image as a base64 data URI; PdfLogicalMarkdownImageExportMode.File writes image files to PdfLogicalMarkdownOptions.ImageDirectory and references them by file name.

public string? ImageDirectory { get; set; } #

Directory that receives image files when PdfLogicalMarkdownOptions.ImageExportMode is PdfLogicalMarkdownImageExportMode.File. Null uses the current working directory.

public long MaxEmbeddedImageBytes { get; set; } #

Maximum image size embedded as one base64 data URI. Larger images are left out. The default is 32 MiB.

public bool IncludeLinkAnnotations { get; set; } #

Carry link annotations into the Markdown. PdfLogicalMarkdownOptions.LinkStyle chooses how they are written.

public PdfLogicalMarkdownLinkStyle LinkStyle { get; set; } #

How link annotations are written when PdfLogicalMarkdownOptions.IncludeLinkAnnotations is true. The default, PdfLogicalMarkdownLinkStyle.Inline, turns web and mail links into Markdown links on the text they cover and leaves out links that only move within the document.

public bool IncludeInlineEmphasis { get; set; } #

Preserve bold and italic styling in reflowed text and list items when the PDF style runs match the logical text.

public bool IncludeFormWidgets { get; set; } #

Emit a form widget section for AcroForm widgets placed on pages.

public bool IncludeMarkupAnnotations { get; set; } #

Emit an annotation section at the end of each page for Highlight, Underline, StrikeOut and Squiggly annotations, with the annotation type, author, the page text it covers and its comment.

public bool AlignNumericTableColumns { get; set; } #

Right-align table columns in Markdown when all non-empty body cells look numeric.

public string PageSeparator { get; set; } #

Markdown text used between pages when PdfLogicalMarkdownOptions.IncludePageSeparators is true.