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>>
Methods from Deref<Target = Dict<'a>>
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)
.