GetDocumentRevisionStart
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 de byte-offset waar één incrementele revisie in het bestand begint
Syntaxis
Delphi
Function TPDFlib.GetDocumentRevisionStart(Const InputFile, Password: WideString; RevisionIndex: Integer): Int64; Virtual;ActiveX
Function PDFlib::GetDocumentRevisionStart(InputFile As String, Password As String, RevisionIndex As Long) As LongDLL
long long DLGetDocumentRevisionStart(int InstanceID, const wchar_t* InputFile, const wchar_t* Password, int RevisionIndex);
long long DLGetDocumentRevisionStartA(int InstanceID, const char* InputFile, const char* Password, int RevisionIndex);Parameters
| InputFile | Het pad van het PDF-bestand dat moet worden gecontroleerd |
|---|---|
| Password | Het wachtwoord om te openen, of een lege string als het bestand niet is versleuteld |
| RevisionIndex | Het nulgebaseerde revisienummer waarvan de beginoffset wordt gevraagd |
Retourwaarden
Geeft de byte-offset terug, of 0 bij een ongeldige index
Opmerkingen
De offset is 64 bit breed. De DLL- en Dylib-exporten geven een long long terug en het Automation-lid een 64-bit integer, dus een scriptomgeving zonder zo'n type kan geen offset voorbij 2 GB ontvangen; gebruik de Delphi-, C++Builder- of Lazarus-API, of roep de export vanuit C aan, wanneer zulke grote offsets relevant zijn
Zie ook
GetDocumentRevisionCount, GetDocumentRevisionEnd, GetDocumentRevisionKind