PDFium Delphi Component Docs

פרוצדורת ConfigurePdfLibrary

Unit: PDFium
מגדירה את הגדרות האתחול המקוריות ברמת התהליך שישמשו את קריאת LoadLibrary הבאה

Syntax

procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);

Parameters

ConfigurationTPdfLibraryConfiguration

Description

ConfigurePdfLibrary שומרת את הגדרות האתחול המקוריות ש-LoadLibrary מעביר אל FPDF_InitLibraryWithConfig בטעינה הראשונה של מודול ה-PDFium

הרשומה מכסה את UserFontPaths, V8Isolate, V8EmbedderSlot, V8Platform, Renderer (prpAgg או prpSkia), FontBackend (pfbpFreeType או pfbpFontations), BrotliEnabled ו-AllowMachineTime

התצורה מועתקת בעומק, כולל מערך UserFontPaths, כך ששינויים מאוחרים ברשומה של הקורא אינם משפיעים

AllowMachineTime שולט במדיניות זמן-מכונה של FPDF_SetSandBoxPolicy שמוחלת מיד לאחר האתחול המקורי, ו-TPdfLibraryConfiguration.Hardened הוא הקיצור שמבטל אותה

Remarks

Example

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

See Also

GetPdfLibraryConfiguration, PdfLibraryConfigurationSealed, TPdf.LoadLibrary, ConfigureSystemFontProvider