THPDFRandomAccessSource.IsRangeAvailable Method

Reports whether the byte range starting at Offset for Count bytes lies completely inside the source size

Declaration

function IsRangeAvailable(Offset, Count: Int64): boolean; virtual;

Unit

HPDFDoc

Parameters

NamePurpose
OffsetZero-based byte offset of the range start
CountRange length in bytes

Return value

True when both offsets are non-negative and the whole range fits within GetSize, otherwise False

Usage notes

Related APIs