PDFium Component Docs

GetPdfLibraryConfiguration function

Unit: PDFium
Geeft een kopie van de actieve procesbrede native bibliotheekconfiguratie terug

Syntax

function GetPdfLibraryConfiguration: TPdfLibraryConfiguration;

Parameters

Geen

Return Value

TPdfLibraryConfiguration

Description

GetPdfLibraryConfiguration geeft de configuratie terug die de volgende, of al voltooide, native bibliotheekload gebruikt

Vóór elke ConfigurePdfLibrary-aanroep geeft het de TPdfLibraryConfiguration.Default-waarden terug: renderer prpDefault, fontbackend pfbpDefault en AllowMachineTime ingeschakeld

Het teruggegeven record is een diepe kopie, dus zijn UserFontPaths-array kan vrij worden gewijzigd zonder de opgeslagen configuratie te raken

Het lezen wordt geserialiseerd met dezelfde critical section als LoadLibrary en ConfigurePdfLibrary, dus het antwoord is stabiel terwijl een andere thread de bibliotheek laadt

Remarks

Example

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

See Also

ConfigurePdfLibrary, PdfLibraryConfigurationSealed, TPdf.LoadLibrary