GetObjectPathStreamLength

Document properties, Content extraction

Description

Returns the decoded byte length of the stream selected by an object path

Syntax

Delphi

Function GetObjectPathStreamLength(Const Path: WideString): Int64;

ActiveX

Function PDFlib::GetObjectPathStreamLength(Path As String) As Long

DLL

int DLGetObjectPathStreamLength(int InstanceID, const wchar_t* Path);
int DLGetObjectPathStreamLengthA(int InstanceID, const char* Path);

Parameters

PathThe object path that selects the stream whose decoded byte length is queried.

Return values

Decoded byte count, or -1 when the path does not select a stream

Remarks

Useful for sizing buffers before calling GetObjectPathStream

See also

GetObjectPathStream, GetObjectByPathCount