ValidateArlingtonSyntax

Compliance, Document inspection

Requires the Enterprise edition. In Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged. Other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

Description

Validates PDF object keys, required entries, types, version availability, direct or indirect reference requirements, and enumerated values with a compiled Arlington model

Syntax

Delphi

Function TPDFlib.ValidateArlingtonSyntax(Const InputFileName, Password: WideString; ModelID, Options: Integer): Integer; Virtual;

DLL

int DLValidateArlingtonSyntax(int InstanceID, const wchar_t* InputFileName, const wchar_t* Password, int ModelID, int Options);
int DLValidateArlingtonSyntaxA(int InstanceID, const char* InputFileName, const char* Password, int ModelID, int Options);

ActiveX

Function PDFlib::ValidateArlingtonSyntax(InputFileName As String, Password As String, ModelID As Long, Options As Long) As Long

Parameters

InputFileNamePDF file to validate
PasswordOwner or user password, or an empty string
ModelIDCompiled model identifier
OptionsBit 1 stops after the first issue, bit 2 permits unknown first-class keys, and bit 4 reports deprecated entries

Return values

Positive valueString-list identifier containing syntax issues; release it with ReleaseStringList
0No issue was found, or validation could not start

Coverage

Read GetArlingtonValidationCoverageJSON after the call to distinguish a complete pass, known failures, incomplete rule coverage and an operation error

Unsupported model expressions produce ARLINGTON_UNSUPPORTED issues with the document path and model column; a zero issue handle on its own does not prove that validation started

Model predicates in the Required, IndirectReference, PossibleValues and SpecialCase columns are evaluated, covering value comparisons, arithmetic, version and presence tests, bit masks, array, string and stream lengths, and name-tree and key-map membership; a predicate whose keys are missing or of another type is indeterminable and does not report a failure

Entries and values defined only by an extension are treated as not applicable, name and number trees are validated leaf by leaf, required inheritable entries are looked up through the Parent chain, and objects reached solely through the generic _UniversalDictionary and _UniversalArray definitions are traversed without unknown-key checks

See also

ValidateArlingtonPipelineSyntax, LoadArlingtonModel