BeginValidationPipelineFromBuffer

Compliance, Performance

Requires the Enterprise edition. Use TPDFlibEnterprise for this native API

Description

Opens a reusable validation pipeline over PDF bytes in memory

Syntax

Delphi

Function TPDFlib.BeginValidationPipelineFromBuffer(Buffer: Pointer; ByteCount: NativeInt; Const Password: WideString; CopyBuffer: Boolean= True; Const SourceName: WideString= ''): Integer; Virtual;

Parameters

BufferPointer to readable memory containing the complete PDF
ByteCountNumber of bytes in the buffer
PasswordOpen password, or an empty string when the PDF is unencrypted
CopyBufferTrue retains a private copy. False borrows the caller's bytes
SourceNameOptional label for validation reports

Return values

Returns a positive pipeline identifier on success, or 0 for unreadable input with error 401 or an incorrect password with error 404

Remarks

When copying, the caller can discard the original buffer after the call returns. When borrowing, keep the memory allocated, readable and unchanged until ReleaseValidationPipeline. The library frees any private copy on release

See also

BeginValidationPipeline, BeginValidationPipelineFromStream, ReleaseValidationPipeline