PDFium Delphi Component Docs

UnloadLibrary method

Unit: PDFium
Unloads the PDFium runtime DLL and releases all global state

Syntax

procedure UnloadLibrary;

Description

Unloads the PDFium runtime DLL and releases all global state

Optional — useful when the host process keeps the DLL pinned but wants the memory back. Cannot be called while TPdf instances are still active

Unit-level procedure in the PDFium unit; call only after all active TPdf instances have closed their documents

Remarks

Example

begin
  PDFium.UnloadLibrary;
end;

See Also

LoadLibrary, Loaded