Class PdfFileByteSource
File-backed IPdfByteSource with random access over a FileStream.
public sealed class PdfFileByteSource : IPdfByteSource, IDisposable
- Inheritance
-
PdfFileByteSource
- Implements
- Inherited Members
Constructors
PdfFileByteSource(string)
public PdfFileByteSource(string filePath)
Parameters
filePathstring
Properties
Length
public long Length { get; }
Property Value
Position
public long Position { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Read(Span<byte>)
public int Read(Span<byte> destination)
Parameters
Returns
ReadByte()
public int ReadByte()
Returns
ReadMemory(long, int)
public ReadOnlyMemory<byte> ReadMemory(long offset, int length)
Parameters
Returns
Seek(long, SeekOrigin)
public void Seek(long offset, SeekOrigin origin = SeekOrigin.Begin)
Parameters
offsetlongoriginSeekOrigin
Slice(long, long)
public IPdfByteSource Slice(long offset, long length)