PDFium Delphi Component Docs

ConfigurePdfLibrary 프로시저

유닛: PDFium
다음 LoadLibrary 호출이 사용하는 프로세스 전체 네이티브 초기화 설정을 지정합니다

Syntax

procedure ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration);

Parameters

ConfigurationTPdfLibraryConfiguration

Description

ConfigurePdfLibrary는 PDFium 모듈이 처음 로드될 때 LoadLibrary가 FPDF_InitLibraryWithConfig에 전달하는 네이티브 초기화 설정을 저장해 둡니다

레코드에는 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