Struct pdf_writer::writers::EmbeddedFile[][src]

pub struct EmbeddedFile<'a> { /* fields omitted */ }
Expand description

Writer for a embedded file stream.

This struct is created by PdfWriter::embedded_file.

Implementations

Write the /Subtype attribute to set the file type.

This can either be a MIME type or a name prefixed by a first class PDF prefix. Note that special characters must be encoded as described in section 7.3.5 of the PDF 1.7 specification, e.g. image/svg+xml would become Name(b"image#2Fsvg+xml").

Start writing the /Params dictionary.

Methods from Deref<Target = Stream<'a>>

Write the /Filter attribute.

Methods from Deref<Target = Dict<'a>>

The number of written pairs.

Start writing a pair with an arbitrary value.

Write a pair with a primitive value.

This is a shorthand for dict.insert(key).primitive(value).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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 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.