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
| Buffer | Pointer to readable memory containing the complete PDF |
|---|---|
| ByteCount | Number of bytes in the buffer |
| Password | Open password, or an empty string when the PDF is unencrypted |
| CopyBuffer | True retains a private copy. False borrows the caller's bytes |
| SourceName | Optional 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