PDFium Delphi Component Docs

ConfigurePdfLibrary Procédure

Module: PDFium
Définit les paramètres d’initialisation natifs à l’échelle du processus utilisés par le prochain appel de LoadLibrary

Syntax

procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);

Parameters

ConfigurationTPdfLibraryConfiguration

Description

ConfigurePdfLibrary stocke les paramètres d’initialisation natifs que LoadLibrary transmet à FPDF_InitLibraryWithConfig lors du premier chargement du module PDFium

L’enregistrement couvre UserFontPaths, V8Isolate, V8EmbedderSlot, V8Platform, Renderer (prpAgg ou prpSkia), FontBackend (pfbpFreeType ou pfbpFontations), BrotliEnabled et AllowMachineTime

La configuration est copiée en profondeur, y compris le tableau UserFontPaths, de sorte que les modifications ultérieures apportées à l’enregistrement de l’appelant n’ont aucun effet

AllowMachineTime contrôle la stratégie d’heure machine FPDF_SetSandBoxPolicy appliquée juste après l’initialisation native, et TPdfLibraryConfiguration.Hardened est le raccourci qui la désactive

Remarks

Example

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

See Also

GetPdfLibraryConfiguration, PdfLibraryConfigurationSealed, TPdf.LoadLibrary, ConfigureSystemFontProvider