GetDocumentRevisionKind
Sicherheit und Signaturen, Direktzugriffsfunktionen
Erfordert die Small-Business-Edition. In Delphi-, C++Builder- und Lazarus-Code erstellen Sie die Bibliothek als TPDFlibSmallBusiness (Unit PDFlibSmallBusiness) oder TPDFlibEnterprise; die Small-Business- und Enterprise-DLL- und ActiveX-Builds liefern sie unverändert mit. Die Single-Edition behält die Methode, die 7 zurückgibt und LastErrorCode auf 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED) setzt
Beschreibung
Klassifiziert, was eine Revision geändert hat, ausgedrückt als das Weitreichendste der von ihr berührten Objekte
Syntax
Delphi
Function TPDFlib.GetDocumentRevisionKind(Const InputFile, Password: WideString; RevisionIndex: Integer): Integer; Virtual;ActiveX
Function PDFlib::GetDocumentRevisionKind(InputFile As String, Password As String, RevisionIndex As Long) As LongDLL
int DLGetDocumentRevisionKind(int InstanceID, const wchar_t* InputFile, const wchar_t* Password, int RevisionIndex);
int DLGetDocumentRevisionKindA(int InstanceID, const char* InputFile, const char* Password, int RevisionIndex);Parameter
| InputFile | Der Pfad der zu untersuchenden PDF-Datei |
|---|---|
| Password | Das Kennwort zum Öffnen oder eine leere Zeichenfolge, wenn die Datei nicht verschlüsselt ist |
| RevisionIndex | Die nullbasierte Revisionsnummer, deren Art abgefragt wird |
Rückgabewerte
| 0 | Nur Verwaltungsdaten |
|---|---|
| 1 | Validierungsmaterial (DSS oder VRI) |
| 2 | Ein Dokumentzeitstempel |
| 3 | Eine Signatur |
| 4 | Ein Formularfeld |
| 5 | Eine Anmerkung |
| 6 | Dokumentinhalt |
| 7 | Konnte nicht bestimmt werden; die Revision darf nicht als unbedenklich behandelt werden, weil ein Bestandteil nicht gelesen werden konnte |
Siehe auch
GetDocumentRevisionCount, GetDocumentRevisionChanges, GetSignatureRevisionIndex