PDFium Delphi Component Docs

GetPdfLibraryConfiguration function

Unit: PDFium
Returns a copy of the active process-wide native library configuration

Syntax

function GetPdfLibraryConfiguration: TPdfLibraryConfiguration;

Parameters

None

Return Value

TPdfLibraryConfiguration

Description

GetPdfLibraryConfiguration returns the configuration that the next, or already completed, native library load uses

Before any ConfigurePdfLibrary call it returns the TPdfLibraryConfiguration.Default values: prpDefault renderer, pfbpDefault font backend, and AllowMachineTime enabled

The returned record is a deep copy, so its UserFontPaths array can be modified freely without affecting the stored configuration

Reading is serialised with the same critical section as LoadLibrary and ConfigurePdfLibrary, so the answer is stable whilst another thread loads the library

Remarks

Example

Config := GetPdfLibraryConfiguration;
if not PdfLibraryConfigurationSealed then
  Config.AllowMachineTime := False;

See Also

ConfigurePdfLibrary, PdfLibraryConfigurationSealed, TPdf.LoadLibrary