PdfResourcePolicy
OfficeIMO.Pdf
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.
Returned or exposed by 5
Constructors
public PdfResourcePolicy() #Methods
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.
Returns
PdfResourcePolicypublic 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.
Returns
PdfResourcePolicypublic static PdfResourcePolicy CreatePortableDeterministic() #Creates the portable deterministic policy. Host fonts, local files, and remote resources are disabled; bounded in-document data resources remain available.
Returns
PdfResourcePolicypublic static PdfResourcePolicy CreateTrustedHost() #Creates an explicit trusted-host policy. Resolvers and format-specific options are still required before local or remote content is loaded.
Returns
PdfResourcePolicyInherited Methods
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.