Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfToPdfOptions

Namespace OfficeIMO.Rtf.Pdf
Assembly OfficeIMO.Rtf.Pdf
Modifiers sealed

Controls conversion from an RTF document model to a first-party PDF document.

Inheritance

  • Object
  • RtfToPdfOptions

Usage

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

Constructors

public RtfToPdfOptions() #

Creates RTF to PDF save options.

Properties

public PdfOptions PdfOptions { get; set; } #

Optional PDF engine options. The converter clones the instance before applying RTF page setup.

public PdfResourcePolicy ResourcePolicy { get; set; } #

Host-resource policy. Defaults to balanced conversion: system fonts and bounded in-source resources are allowed, while local and remote reads are denied.

public Boolean IncludeHiddenText { get; set; } #

When true, RTF hidden runs are included in PDF output. Hidden text is skipped by default.

public Boolean IncludeImages { get; set; } #

When true, supported top-level and inline PNG/JPEG images are emitted to the PDF.

public Func<RtfImage, Byte[]> ImageConverter { get; set; } #

Optional converter for image formats that the managed drawing layer cannot rasterize, such as WMF and EMF. The callback must return a raster payload supported by the shared Drawing-to-PDF pipeline, or null when it cannot convert the image.

public Double DefaultImageWidth { get; set; } #

Default image width in PDF points when the RTF image does not carry a desired width.

public Double DefaultImageHeight { get; set; } #

Default image height in PDF points when the RTF image does not carry a desired height.

public Boolean IncludeMetadata { get; set; } #

When true, RTF title, author, subject, and keywords are copied to PDF metadata.

public Boolean IncludeTables { get; set; } #

When true, RTF tables are converted to PDF tables.

public Boolean IncludeHeaderFooters { get; set; } #

When true, semantic RTF header and footer text is mapped to PDF running header/footer text.

public Boolean IncludeNotes { get; set; } #

When true, footnote, endnote, and annotation bodies referenced by runs are appended to PDF output.

public Int32 MaximumSystemFontFamilies { get; set; } #

Maximum number of distinct RTF font families allowed to trigger installed-font resolution. Additional families use dependency-free PDF fallbacks. Set to zero to disable system-font probes.

Fields

public const Int32 DefaultMaximumSystemFontFamilies #

Default number of distinct document font families allowed to probe installed system fonts.

Value: 32