Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfResourcePolicy

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
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

Explore 5 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.

Constructors

public PdfResourcePolicy() #

Methods

public PdfResourcePolicy Clone() #

Creates an independent policy snapshot.

public static PdfResourcePolicy CreateDefault() #

Creates the balanced document-conversion default. Library-selected installed fonts and bounded in-source resources are allowed for document fidelity, including document-selected installed fonts. Arbitrary local files and remote resources remain disabled.

public static PdfResourcePolicy CreateLibraryFontDefault() #

Allows library-selected installed fonts and bounded in-source resources, while document-selected host fonts, arbitrary local files and remote resources remain disabled.

public static PdfResourcePolicy CreatePortableDeterministic() #

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() #

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

Properties

public bool AllowSystemFontEmbedding { get; set; } #

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

public bool AllowDocumentFontEmbedding { get; set; } #

When true, Office converters may use font family names from the source document to locate and embed installed system fonts. Enabled by the balanced default; disabled by PdfResourcePolicy.CreatePortableDeterministic.

public bool AllowLocalFileAccess { get; set; } #

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

public bool AllowRemoteResourceResolution { get; set; } #

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

public bool AllowDataUris { get; set; } #

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

public bool AllowEmbeddedPackageResources { get; set; } #

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