SaveValidationReportA

규격 준수

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

설명

끝의 A는 ANSI(char) DLL 진입점을 나타내며 ActiveX/COM 표면은 Unicode 형식만 노출합니다. 동작은 SaveValidationReport 함수와 동일하며 문자열 인수는 현재 SetAnsiMode 코드 페이지를 사용하여 해석됩니다

파일의 구조화된 검증 보고서를 UTF-8로 디스크에 씁니다

구문

Delphi

Function DLSaveValidationReportA(InstanceID: Integer; InputFileName: PAnsiChar; Password: PAnsiChar; ReportFileName: PAnsiChar; ComplianceTests: Integer; Options: Integer; ReportFormat: Integer): Integer;

DLL

int DLSaveValidationReportA(int InstanceID, const char* InputFileName, const char* Password, const char* ReportFileName, int ComplianceTests, int Options, int ReportFormat);

매개변수

InputFileName검증할 PDF 파일
Password파일을 여는 데 필요한 암호 또는 빈 문자열
ReportFileName기록할 보고서 파일이며 누락된 디렉터리는 생성됩니다
ComplianceTests검사를 선택하는 비트 마스크: 1 = PDF/A, 2 = PDF/UA-1, 0 = 둘 다
Options검사에 그대로 전달됩니다. 1은 각 검사의 첫 발견에서 중지합니다
ReportFormat0 = XML, 1 = JSON

반환 값

1보고서를 기록했습니다
0보고서 파일 이름을 지정하지 않았거나 입력 파일이 없습니다

비고

보고서 내용은 CreateValidationReport와 동일하며 전달 방식만 다릅니다. 보고서를 설명 대상 아티팩트 옆에 쓰면 문서를 메모리에 보관하지 않고도 빌드 로그를 감사할 수 있습니다

예제

if PDF.SaveValidationReport('invoice.pdf', '', 'reports\invoice.xml', 0, 0, 0)= 0 then
  ShowMessage('the report could not be written');

참고 항목

CreateValidationReport, SavePreflightReport, SavePreflightReportEx