PDFium Delphi Component Docs

ConfigurePdfLibrary procedur

Unit: PDFium
Sätter de processövergripande nativa initieringsinställningar som nästa LoadLibrary-anrop använder

Syntax

procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);

Parameters

ConfigurationTPdfLibraryConfiguration

Description

ConfigurePdfLibrary sparar de nativa initieringsinställningar som LoadLibrary skickar till FPDF_InitLibraryWithConfig när PDFium-modulen läses in första gången

Posten omfattar UserFontPaths, V8Isolate, V8EmbedderSlot, V8Platform, Renderer (prpAgg eller prpSkia), FontBackend (pfbpFreeType eller pfbpFontations), BrotliEnabled och AllowMachineTime

Konfigurationen djupkopieras, inklusive arrayen UserFontPaths, så att senare ändringar av anroparens post inte har någon effekt

AllowMachineTime styr maskintidspolicyn FPDF_SetSandBoxPolicy som tillämpas direkt efter nativ initiering, och TPdfLibraryConfiguration.Hardened är genvägen som inaktiverar den

Remarks

Example

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

See Also

GetPdfLibraryConfiguration, PdfLibraryConfigurationSealed, TPdf.LoadLibrary, ConfigureSystemFontProvider