ExtractDocumentRevision
Paginamanipulatie
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 teruggeeft en LastErrorCode op 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED) zet
Beschrijving
Schrijft een eerdere revisie van het document naar een nieuw bestand
Syntaxis
Delphi
Function ExtractDocumentRevision(RevisionIndex: Integer; Const OutputFileName: WideString): Integer; Virtual;ActiveX
Function PDFlib::ExtractDocumentRevision(RevisionIndex As Long, OutputFileName As String) As LongDLL
int DLExtractDocumentRevision(int InstanceID, int RevisionIndex, const wchar_t* OutputFileName);
int DLExtractDocumentRevisionA(int InstanceID, int RevisionIndex, const char* OutputFileName);Parameters
| RevisionIndex | Nulgebaseerde revisie (0 is het originele bestand); gebruik GetDocumentRevisionCount voor de ketenlengte |
|---|---|
| OutputFileName | Doelpad voor de geëxtraheerde revisie |
Retourwaarden
1 bij succes, 0 als het document niet vanuit een bestand is geladen of de revisie niet bestaat
Opmerkingen
De uitvoer is het rauwe byte-prefix van de bron dat eindigt op de revisiegrens, zodat handtekeningen van die revisie ongewijzigd verifiëren