InstallationConfigureRuntime Method

Enables copying the runtime to a different location and installing dependencies before running the converter. This function is intended for environments where installed dependencies are not persisted after a restart, It must be called before the first HTML conversion, which triggers the configuration setup. Changes made afterward will have no effect until the application is restarted

Definition

Namespace: EvoPdf.Chromium
Assembly: EvoPdf.Chromium (in EvoPdf.Chromium.dll) Version: 12.0.0
C#
public static void ConfigureRuntime(
	bool copyRuntime,
	string runtimeCopyPath,
	string installScript,
	bool ensureExecutePermission = false
)

Parameters

copyRuntime  Boolean
Indicates whether the runtime should be copied to a different location before running the converter. This option is useful if the application is deployed on a read-only file system and the runtime requires modifications, such as permission changes
runtimeCopyPath  String
The path where the runtime should be copied. If null, a default temporary folder will be used
installScript  String
An optional shell script to be executed before copying the runtime. This script can be used for example to install Linux dependencies. If null, no script will be executed
ensureExecutePermission  Boolean  (Optional)
Indicates whether execute permission should be explicitly granted to the Linux runtime after the install script is executed. This operation is always performed when the runtime is copied, but it can be enforced using this parameter even when only the installation step is performed. On Windows it is ignored

See Also