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 LongDLL
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
| InputFileName | Het te valideren PDF-bestand |
|---|---|
| Password | Het wachtwoord dat nodig is om het bestand te openen, of een lege string |
| ReportFileName | Het weg te schrijven rapportbestand; ontbrekende mappen worden aangemaakt |
| ComplianceTests | Bitmasker dat de controles kiest: 1 = PDF/A, 2 = PDF/UA-1, 0 = beide |
| Options | Wordt aan de controles doorgegeven; 1 stopt bij de eerste bevinding van elke controle |
| ReportFormat | 0 = XML, 1 = JSON |
Retourwaarden
| 1 | Het rapport is geschreven |
|---|---|
| 0 | Er 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