SaveValidationReport

Naleving

Vereist de Enterprise-editie. In Delphi-, C++Builder- en Lazarus-code maakt u de library aan als TPDFlibEnterprise (unit PDFlibEnterprise); de Enterprise-DLL- en ActiveX-builds leveren die ongewijzigd aan. Andere edities behouden de methode, die 0, een lege string of False teruggeeft en LastErrorCode op 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED) zet

Beschrijving

Schrijft het gestructureerde validatierapport van een bestand als UTF-8 naar schijf

Syntaxis

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);

Parameters

InputFileNameHet te valideren PDF-bestand
PasswordHet wachtwoord dat nodig is om het bestand te openen, of een lege string
ReportFileNameHet weg te schrijven rapportbestand; ontbrekende mappen worden aangemaakt
ComplianceTestsBitmasker dat de controles kiest: 1 = PDF/A, 2 = PDF/UA-1, 0 = beide
OptionsWordt aan de controles doorgegeven; 1 stopt bij de eerste bevinding van elke controle
ReportFormat0 = XML, 1 = JSON

Retourwaarden

1Het rapport is geschreven
0Er is geen rapportbestandsnaam opgegeven, of het invoerbestand bestaat niet

Opmerkingen

De rapportinhoud is identiek aan CreateValidationReport; alleen de levering verschilt. Het rapport naast het artefact dat het beschrijft weg te schrijven houdt een buildlog auditable zonder het document in het geheugen te hoeven houden

Voorbeeld

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

Zie ook

CreateValidationReport, SavePreflightReport, SavePreflightReportEx