Struct lopdf::Stream[][src]

pub struct Stream {
    pub dict: Dictionary,
    pub content: Vec<u8>,
    pub allows_compression: bool,
    pub start_position: Option<usize>,
}
Expand description

Stream object Warning - all streams must be indirect objects, while the stream dictionary may be a direct object

Fields

dict: Dictionary

Associated stream dictionary

content: Vec<u8>

Contents of the stream in bytes

allows_compression: bool

Can the stream be compressed by the Document::compress() function? Font streams may not be compressed, for example

start_position: Option<usize>

Stream data’s position in PDF file.

Implementations

Default is that the stream may be compressed. On font streams, set this to false, otherwise the font will be corrupt

Decode content after decoding all stream filters.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.