Debenu Quick PDF logo

RemoveDocument

Document management

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 TDebenuPDFLibrary1511.RemoveDocument(DocumentID: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::RemoveDocument(DocumentID As Long) As Long

DLL

int DPLRemoveDocument(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport