Struct pdf_writer::writers::EmbeddedFile
source · pub struct EmbeddedFile<'a> { /* private fields */ }
Expand description
Writer for an embedded file stream.
This struct is created by Chunk::embedded_file
.
Implementations§
source§impl<'a> EmbeddedFile<'a>
impl<'a> EmbeddedFile<'a>
sourcepub fn subtype(&mut self, subtype: Name<'_>) -> &mut Self
pub fn subtype(&mut self, subtype: Name<'_>) -> &mut Self
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")
.
sourcepub fn params(&mut self) -> EmbeddingParams<'_>
pub fn params(&mut self) -> EmbeddingParams<'_>
Start writing the /Params
dictionary.
Methods from Deref<Target = Stream<'a>>§
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
Trait Implementations§
source§impl<'a> Deref for EmbeddedFile<'a>
impl<'a> Deref for EmbeddedFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for EmbeddedFile<'a>
impl<'a> RefUnwindSafe for EmbeddedFile<'a>
impl<'a> Send for EmbeddedFile<'a>
impl<'a> Sync for EmbeddedFile<'a>
impl<'a> Unpin for EmbeddedFile<'a>
impl<'a> !UnwindSafe for EmbeddedFile<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more