Interface IPdfRangeReader
Random access to a PDF file that is not in memory, for example a file on a web server that answers HTTP range requests. The engine asks only for the ranges it needs (the cross-reference data at the end, then the objects of the pages it draws); see PdfRangedDocument.
public interface IPdfRangeReader
Properties
Length
The length of the file in bytes.
long Length { get; }
Property Value
Methods
ReadAsync(long, Memory<byte>, CancellationToken)
Reads exactly destination.Length bytes from offset. The range is
always inside the file. Throws when the bytes cannot be read.
ValueTask ReadAsync(long offset, Memory<byte> destination, CancellationToken cancellationToken)
Parameters
offsetlongdestinationMemory<byte>cancellationTokenCancellationToken