Skip to main content

Class PdfStream

Namespace: AdCodicem.Pdf.Objects
Assembly: AdCodicem.Pdf.dll

Represents a PDF stream: a dictionary describing a sequence of bytes, plus the bytes themselves.

public sealed class PdfStream : PdfObject

Inheritance​

object ← PdfObject ← PdfStream

Inherited Members​

PdfObject.Resolve(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods​

PdfObjectExtensions.AsArray(PdfObject?), PdfObjectExtensions.AsBoolean(PdfObject?), PdfObjectExtensions.AsDictionary(PdfObject?), PdfObjectExtensions.AsInteger(PdfObject?), PdfObjectExtensions.AsName(PdfObject?), PdfObjectExtensions.AsNumber(PdfObject?), PdfObjectExtensions.AsStream(PdfObject?), PdfObjectExtensions.AsString(PdfObject?), PdfObjectExtensions.AsText(PdfObject?), PdfStreamDecodingExtensions.Decode(PdfStream, PdfDiagnostics?), PdfStreamDecodingExtensions.HasImageFilter(PdfStream), PdfObjectExtensions.Resolved(PdfObject?)

Constructors​

PdfStream(PdfDictionary, PdfStreamData)​

Initializes a stream from its dictionary and its encoded data.

public PdfStream(PdfDictionary dictionary, PdfStreamData data)

Parameters​

dictionary PdfDictionary

data PdfStreamData

Properties​

Data​

Gets the encoded data of the stream.

public PdfStreamData Data { get; }

Property Value​

PdfStreamData

Dictionary​

Gets the stream dictionary.

public PdfDictionary Dictionary { get; }

Property Value​

PdfDictionary

RawLength​

Gets the number of encoded bytes.

public int RawLength { get; }

Property Value​

int

Methods​

GetRawBytes()​

Returns the encoded bytes, exactly as they appear in the file.

public ReadOnlyMemory<byte> GetRawBytes()

Returns​

ReadOnlyMemory<byte>

ToString()​

Returns a string that represents the current object.

public override string ToString()

Returns​

string

A string that represents the current object.