Method DecodeStream

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

DecodeStream(PdfStream)

Applies a stream's filters and returns the decoded bytes. Supported filters: FlateDecode, LZWDecode (both with PNG and TIFF predictors), ASCIIHexDecode, ASCII85Decode and RunLengthDecode.

public byte[] DecodeStream(PdfStream stream)

Parameters

stream PdfStream

A stream read from this file.

Returns

byte[]

Exceptions

NotSupportedException

The stream uses another filter, such as DCTDecode or JBIG2Decode.