procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);
| Configuration | TPdfLibraryConfiguration |
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
EPdfErrorpfbpDefault kräver Renderer prpSkia, annars kastas EPdfErrorEPdfErrorConfig := TPdfLibraryConfiguration.Hardened;
Config.Renderer := prpSkia;
ConfigurePdfLibrary(Config);