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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stream
impl UnwindSafe for Stream
Blanket Implementations
Mutably borrows from an owned value. Read more