PDFium Delphi Component Docs

ConfigurePdfLibrary eljárás

Egység: PDFium
Beállítja azokat a folyamat-szintű natív inicializációs beállításokat, amelyeket a következő LoadLibrary hívás használ

Syntax

procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);

Parameters

ConfigurationTPdfLibraryConfiguration

Description

A ConfigurePdfLibrary tárolja azokat a natív inicializációs beállításokat, amelyeket a LoadLibrary átad az FPDF_InitLibraryWithConfig függvénynek, amikor a PDFium modul először töltődik be

A rekord a UserFontPaths, V8Isolate, V8EmbedderSlot, V8Platform, Renderer (prpAgg vagy prpSkia), FontBackend (pfbpFreeType vagy pfbpFontations), BrotliEnabled és AllowMachineTime mezőket foglalja magában

A konfiguráció mélymásolatként tárolódik, a UserFontPaths tömbbel együtt, így a hívó rekordjának későbbi módosításának nincs hatása

Az AllowMachineTime az FPDF_SetSandBoxPolicy gépidő-szabályzatot vezérli, amelyet közvetlenül a natív inicializáció után alkalmaz, a TPdfLibraryConfiguration.Hardened pedig azt kikapcsoló parancsikon

Remarks

Example

Config := TPdfLibraryConfiguration.Hardened;
Config.Renderer := prpSkia;
ConfigurePdfLibrary(Config);

See Also

GetPdfLibraryConfiguration, PdfLibraryConfigurationSealed, TPdf.LoadLibrary, ConfigureSystemFontProvider