BeginValidationPipeline

Compliance, Performance

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

Opens and parses a PDF once, retaining its reader, security information, document object graph, and lazy object cache for multiple validation tasks

Syntax

Delphi

Function TPDFlib.BeginValidationPipeline(Const InputFileName, Password: WideString): Integer; Virtual;

DLL

int DLBeginValidationPipeline(int InstanceID, const wchar_t* InputFileName, const wchar_t* Password);
int DLBeginValidationPipelineA(int InstanceID, const char* InputFileName, const char* Password);

ActiveX

Function PDFlib::BeginValidationPipeline(InputFileName As String, Password As String) As Long

Parameters

InputFileNamePDF file to validate without modifying it
PasswordOpen password, or an empty string for an unencrypted file

Return values

0The file could not be opened, parsed, or decrypted
Positive valuePipeline identifier accepted by the validation pipeline methods

Remarks

Always release a successful identifier with ReleaseValidationPipeline; independent pipeline objects may be retained for different input files

See also

RunValidationPipelineTask, CreateValidationPipelineReport, GetValidationPipelineParseCount