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 LongDLL
int DLRemoveDocument(int InstanceID, int DocumentID);Parameters
| DocumentID | The ID of the document to remove |
|---|
Return values
| 0 | The specified document does not exist or could not be removed. |
|---|---|
| 1 | The specified document was removed successfully |