RemoveDocument

Document management

Description

Removes the specified document, freeing up memory.

PDF Library will always ensure that there is at least one document loaded at all times.

If the specified document was the only loaded document it will be removed and replaced with a new blank document.

Syntax

Delphi

function TPDFlib.RemoveDocument(DocumentID: Integer): Integer;

ActiveX

Function PDFlib::RemoveDocument(DocumentID As Long) As Long

DLL

int DLRemoveDocument(int InstanceID, int DocumentID);

Parameters

DocumentIDThe ID of the document to remove

Return values

0The specified document does not exist or could not be removed.
1The specified document was removed successfully