Class PdfStream

Namespace
SoftZenPdf.Objects
Assembly
SoftZenPdf.dll

A PDF stream: a dictionary followed by binary data. Streams must be indirect objects; add them with AddObject(PdfObject) and refer to them by their PdfReference.

public sealed class PdfStream : PdfObject
Inheritance
PdfStream
Inherited Members

Constructors

PdfStream(byte[]?, PdfDictionary?)

Creates a stream.

Properties

Data

The data as stored, still encoded by the stream's filters. For streams read from a file, use DecodeStream(PdfStream) to get decoded bytes.

Dictionary

The stream dictionary.

Methods

SetData(byte[], bool)

Replaces the data, optionally Flate-compressing it and setting /Filter to match.