PDFium Delphi Component Docs

Hàm GetPdfLibraryConfiguration

Unit: PDFium
Trả về một bản sao của cấu hình thư viện native toàn tiến trình đang hoạt động

Syntax

function GetPdfLibraryConfiguration: TPdfLibraryConfiguration;

Parameters

Không có

Return Value

TPdfLibraryConfiguration

Description

GetPdfLibraryConfiguration trả về cấu hình mà lần nạp thư viện native kế tiếp, hoặc lần nạp đã hoàn tất, sử dụng

Trước bất kỳ lời gọi ConfigurePdfLibrary nào, nó trả về các giá trị TPdfLibraryConfiguration.Default: renderer prpDefault, backend phông chữ pfbpDefault, và AllowMachineTime được bật

Bản ghi trả về là một bản sao sâu, nên mảng UserFontPaths của nó có thể được sửa đổi tự do mà không ảnh hưởng đến cấu hình đã lưu

Việc đọc được tuần tự hóa với cùng một critical section như LoadLibrary và ConfigurePdfLibrary, nên câu trả lời ổn định ngay cả khi một thread khác đang nạp thư viện

Remarks

Example

Config := GetPdfLibraryConfiguration;
if not PdfLibraryConfigurationSealed then
  Config.AllowMachineTime := False;

See Also

ConfigurePdfLibrary, PdfLibraryConfigurationSealed, TPdf.LoadLibrary