Click or drag to resize
Pdf Library for .NET

GlobalProperties Class

Global configuration knobs for the SelectPdf SDK. Settings here apply to every conversion and every document produced in the current application domain.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalGlobalProperties

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntax
public static class GlobalProperties

The GlobalProperties type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberChromiumEngineHostMode Gets or sets how the Chromium engine is hosted while converting HTML. Default is InProcess where the in-process engine host is installed beside the engine, and OutOfProcess otherwise.
Public propertyStatic memberEngineAccessToken Gets or sets the access token sent to the selectpdf/engine container, or null when the engine requires none. It must be one of the tokens the engine was started with.
Public propertyStatic memberEngineEndpoint Gets or sets the url of the remote SelectPdf engine (the selectpdf/engine container), used when the rendering engine is ChromiumRemote. Default is http://selectpdf-engine:8080, the engine as a service named selectpdf-engine on the same Docker network or cluster.
Public propertyStatic memberEngineTimeout Gets or sets how long the application waits for the selectpdf/engine container to answer one request, or null (the default) to derive it from each conversion's own timeouts.
Public propertyStatic memberForceDenyLocalFileAccess A flag indicating whether local file:// URLs may be loaded during conversion. Default is false (local files are allowed).
Public propertyStatic memberLFN Sets the path of the diagnostic log file written during conversion. When unset, no log is written.
Public propertyStatic memberLicenseKey Gets or sets the license key string received when the library is purchased.
Public propertyStatic memberRenderingEngine Gets or sets where the native engines run: on this machine (Chromium, the default) or by a remote SelectPdf engine, the selectpdf/engine container image (ChromiumRemote).
Top
Example
SelectPdf.Universal.GlobalProperties.LicenseKey = "your-license-key";
SelectPdf.Universal.GlobalProperties.ForceDenyLocalFileAccess = true;
See Also