Class PdfDictionary.PdfStream
The PDF stream objects.
public sealed class PdfDictionary.PdfStream
- Inheritance
-
PdfDictionary.PdfStream
- Inherited Members
Properties
Length
Gets the length of the stream, i.e. the actual number of bytes in the stream.
public int Length { get; }
Property Value
UnfilteredValue
Gets the value of the stream unfiltered. The stream content is not modified by this operation.
public byte[] UnfilteredValue { get; }
Property Value
- byte[]
Value
Get or sets the bytes of the stream as they are, i.e. if one or more filters exist the bytes are not unfiltered.
public byte[] Value { get; set; }
Property Value
- byte[]
Methods
Clone()
Clones this stream by creating a deep copy.
public PdfDictionary.PdfStream Clone()
Returns
ToString()
Returns the stream content as a raw string.
public override string ToString()
Returns
TryUnfilter()
Tries to unfilter the bytes of the stream. If the stream is filtered and PDFsharp knows the filter algorithm, the stream content is replaced by its unfiltered value and the function returns true. Otherwise, the content remains untouched and the function returns false. The function is useful for analyzing existing PDF files.
public bool TryUnfilter()
Returns
Zip()
Compresses the stream with the FlateDecode filter. If a filter is already defined, the function has no effect.
public void Zip()