RemoveDocument
Description
Removes the specified document, freeing up memory.
Quick PDF Library will always ensure that there is at least one document loaded at all times.
In version 7.18 and earlier, it was only possible to remove a document if there were at least two documents loaded.
From version 7.19 this function will always succeed. If the specified document was the only loaded document it will be removed and replaced with a new blank document.
Syntax
Delphi
function TQuickPDF0813.RemoveDocument(DocumentID: Integer): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::RemoveDocument(DocumentID As Long) As Long
DLL
int QuickPDFRemoveDocument(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 |