Class PdfDictionary.PdfStream
Represents the optional PDF stream of a dictionary.
public sealed class PdfDictionary.PdfStream
- Inheritance
-
objectPdfDictionary.PdfStream
Properties
- Length
Gets the length of the stream, i.e. the actual number of bytes in the stream.
- UnfilteredValue
Gets the value of the stream unfiltered. The stream content is not modified by this operation.
- 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.
Methods
- Clone()
Clones this stream by creating a deep copy.
- IsFiltered()
Returns true if the dictionary contains the key '/Filter', false otherwise.
- ToString()
Returns the stream content as a raw string.
- TryUncompress()
Tries to uncompress the bytes of the stream. If the stream is filtered with the LZWDecode or FlateDecode filter, the stream content is replaced by its uncompressed 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.
- 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.
- Zip()
Compresses the stream with the FlateDecode filter. If a filter is already defined, the function has no effect.