API Reference

Class

PdfResourcePolicy

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Controls whether a source-to-PDF conversion may read resources from the host environment. Explicit in-memory font and image data remains available in every policy.

Inheritance

  • Object
  • PdfResourcePolicy

Usage

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

Constructors

Methods

public PdfResourcePolicy Clone() #
Returns: PdfResourcePolicy

Creates an independent policy snapshot.

public static PdfResourcePolicy CreateDefault() #
Returns: PdfResourcePolicy

Creates the balanced document-conversion default. Installed fonts and bounded in-source resources are allowed for Unicode fidelity, while arbitrary local-file and remote-resource reads remain disabled.

public static PdfResourcePolicy CreatePortableDeterministic() #
Returns: PdfResourcePolicy

Creates the portable deterministic policy. Host fonts, local files, and remote resources are disabled; bounded in-document data resources remain available.

public static PdfResourcePolicy CreateTrustedHost() #
Returns: PdfResourcePolicy

Creates an explicit trusted-host policy. Resolvers and format-specific options are still required before local or remote content is loaded.

Properties

public Boolean AllowSystemFontEmbedding { get; set; } #

When true, converters may load and embed installed system fonts. Enabled by the balanced default.

public Boolean AllowLocalFileAccess { get; set; } #

When true, format-specific local-resource options may read files from explicitly allowed locations.

public Boolean AllowRemoteResourceResolution { get; set; } #

When true, application-supplied resolvers may obtain remote resources.

public Boolean AllowDataUris { get; set; } #

When true, bounded data-URI resources embedded in the source document may be decoded.

public Boolean AllowEmbeddedPackageResources { get; set; } #

When true, bounded resources already contained in a source package, such as MHTML cid: parts, may be resolved.