GetDocumentRevisionCount

Beveiliging en handtekeningen, functionaliteit voor directe toegang

Vereist de Small Business-editie. In Delphi-, C++Builder- en Lazarus-code maakt u de library aan als TPDFlibSmallBusiness (unit PDFlibSmallBusiness) of TPDFlibEnterprise; de Small Business- en Enterprise-DLL- en ActiveX-builds leveren die ongewijzigd aan. De Single-editie behoudt de methode, die 0, een lege string of False teruggeeft en LastErrorCode op 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED) zet

Beschrijving

Rapporteert het aantal incrementele revisies in een PDF-bestand, zonder het in het volledige in-memory documentmodel te laden

Revisies worden genummerd vanaf nul (het originele document) omhoog; elke volgende revisie is een incrementele update die objecten achteraan het bestand heeft toegevoegd

Syntaxis

Delphi

Function TPDFlib.GetDocumentRevisionCount(Const InputFile, Password: WideString): Integer; Virtual;

ActiveX

Function PDFlib::GetDocumentRevisionCount(InputFile As String, Password As String) As Long

DLL

int DLGetDocumentRevisionCount(int InstanceID, const wchar_t* InputFile, const wchar_t* Password);
int DLGetDocumentRevisionCountA(int InstanceID, const char* InputFile, const char* Password);

Parameters

InputFileHet pad van het PDF-bestand dat moet worden gecontroleerd
PasswordHet wachtwoord om te openen, of een lege string als het bestand niet is versleuteld

Retourwaarden

Geeft het aantal revisies terug, of 0 wanneer het bestand niet kan worden gelezen of zijn revisies niet gevolgd kunnen worden

Zie ook

GetDocumentRevisionStart, GetDocumentRevisionEnd, GetDocumentRevisionKind, GetDocumentRevisionChanges, GetSignatureRevisionIndex