DocumentCount

Document management

Description

Returns the total number of documents.

When an instance of PDF Library is first created a blank one page document is automatically created so the document count will be 1. Each time a new document is created or loaded the document count will be increased.

The RemoveDocument function will only succeed if there are at least two documents loaded, so the document count will always be at least 1.

Syntax

Delphi

function TPDFlib.DocumentCount: Integer;

ActiveX

Function PDFlib::DocumentCount As Long

DLL

int DLDocumentCount(int InstanceID);