Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfResourcePolicy

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 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 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.

Constructors

public PdfResourcePolicy() #

Methods

public PdfResourcePolicy Clone() #
Returns: PdfResourcePolicy

Creates an independent policy snapshot.

public static PdfResourcePolicy CreateDefault() #
Returns: PdfResourcePolicy

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