procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);
| Configuration | TPdfLibraryConfiguration |
ConfigurePdfLibrary menyimpan pengaturan inisialisasi native yang diteruskan LoadLibrary ke FPDF_InitLibraryWithConfig ketika modul PDFium dimuat pertama kali
Record tersebut mencakup UserFontPaths, V8Isolate, V8EmbedderSlot, V8Platform, Renderer (prpAgg atau prpSkia), FontBackend (pfbpFreeType atau pfbpFontations), BrotliEnabled, dan AllowMachineTime
Konfigurasi disalin secara deep-copy, termasuk array UserFontPaths, sehingga perubahan berikutnya pada record milik pemanggil tidak berpengaruh
AllowMachineTime mengendalikan kebijakan machine-time FPDF_SetSandBoxPolicy yang diterapkan tepat setelah inisialisasi native, dan TPdfLibraryConfiguration.Hardened adalah pintas yang menonaktifkannya
EPdfErrorpfbpDefault mensyaratkan Renderer prpSkia, jika tidak EPdfError dimunculkanEPdfErrorConfig := TPdfLibraryConfiguration.Hardened;
Config.Renderer := prpSkia;
ConfigurePdfLibrary(Config);