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