ApplyPAdESLongTermArchiveValidation

디지털 서명

Enterprise 에디션이 필요합니다. Delphi, C++Builder 및 Lazarus 코드에서는 라이브러리를 TPDFlibEnterprise(PDFlibEnterprise 유닛)로 생성합니다. Enterprise DLL 및 ActiveX 빌드는 이를 그대로 제공합니다. 다른 에디션은 메서드를 유지하며, 이 메서드는 0, 빈 문자열 또는 False를 반환하고 LastErrorCode를 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)으로 설정합니다

설명

이미 서명된 PDF를 한 번의 호출로 PAdES B-LTA로 승격합니다: 먼저 B-LT 검증 자료 업그레이드가 실행되고, 이어 /DocTimeStamp 서명이 /SubFilter /ETSI.RFC3161와 함께 덧붙여지는데 그 토큰은 SetTimeStampServer로 설정한 TSA에서 가져오며, 결과는 파일로 기록됩니다

구문

Delphi

Function TPDFlib.ApplyPAdESLongTermArchiveValidation(Const InputFile, Password, OutputFile, FieldName: WideString; Options: Integer): Integer; Virtual;

ActiveX

Function PDFlib::ApplyPAdESLongTermArchiveValidation(InputFile As String, Password As String, OutputFile As String, FieldName As String, Options As Long) As Long

DLL

int DLApplyPAdESLongTermArchiveValidation(int InstanceID, const wchar_t* InputFile, const wchar_t* Password, const wchar_t* OutputFile, const wchar_t* FieldName, int Options);
int DLApplyPAdESLongTermArchiveValidationA(int InstanceID, const char* InputFile, const char* Password, const char* OutputFile, const char* FieldName, int Options);

매개변수

InputFile서명된 PDF
Password열기용 암호 또는 빈 문자열
OutputFile기록할 B-LTA PDF
FieldName처리할 서명 필드, 또는 모든 서명을 한 리비전으로 처리하려면 빈 문자열
OptionsPADES_LTV_* 비트 마스크로, ApplyPAdESLongTermValidation에 문서화되어 있습니다; 0은 PADES_LTV_DEFAULT를 선택합니다

반환 값

1승격이 성공했습니다
2입력 파일을 읽을 수 없습니다
3B-LT 단계 실패; 이유는 GetPAdESLTVError가 반환합니다
4TSA가 설정되지 않았거나 요청을 거부했습니다; TSA 세부 정보는 GetTimeStampError에 있습니다
10출력을 기록할 수 없습니다
11문서 타임스탬프를 적용할 수 없습니다

참고 항목

ApplyPAdESLongTermValidation, SetTimeStampServer, SetPAdESSignatureTimeStampDigestAlgorithm