SaveValidationReport

규격 준수

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

설명

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

구문

Delphi

Function TPDFlib.SaveValidationReport(Const InputFileName, Password, ReportFileName: WideString; ComplianceTests, Options, ReportFormat: Integer): Integer; Virtual;

ActiveX

Function PDFlib::SaveValidationReport(InputFileName As String, Password As String, ReportFileName As String, ComplianceTests As Long, Options As Long, ReportFormat As Long) As Long

DLL

int DLSaveValidationReport(int InstanceID, const wchar_t* InputFileName, const wchar_t* Password, const wchar_t* ReportFileName, int ComplianceTests, int Options, int ReportFormat);
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