Destroy

Object lifecycle

Description

Releases the resources owned by a TPDFlib instance

Applications normally call Free instead of calling Destroy directly, so Delphi can safely ignore a nil reference

Syntax

Delphi

Destructor TPDFlib.Destroy; Override;

Remarks

Release or save active documents before destroying the instance when the application needs explicit control over output and error handling

After destruction, do not reuse document, image, font, renderer, signing, or buffer identifiers that belonged to that instance