Struct pdf_writer::writers::Artifact
source · pub struct Artifact<'a> { /* private fields */ }
Expand description
Writer for an actifact property list dictionary. PDF 1.4+.
Implementations§
source§impl<'a> Artifact<'a>
impl<'a> Artifact<'a>
sourcepub fn kind(&mut self, kind: ArtifactType) -> &mut Self
pub fn kind(&mut self, kind: ArtifactType) -> &mut Self
Write the /Type
entry to set the type of artifact. Specific to
artifacts. PDF 1.4+.
sourcepub fn subtype(&mut self, subtype: ArtifactSubtype<'_>) -> &mut Self
pub fn subtype(&mut self, subtype: ArtifactSubtype<'_>) -> &mut Self
Write the /Subtype
entry to set the subtype of pagination artifacts.
Specific to artifacts. PDF 1.7+.
sourcepub fn bounding_box(&mut self, bbox: Rect) -> &mut Self
pub fn bounding_box(&mut self, bbox: Rect) -> &mut Self
Write the /BBox
entry to set the bounding box of the artifact.
Specific to artifacts. Required for background artifacts. PDF 1.4+.
sourcepub fn attached(
&mut self,
attachment: impl IntoIterator<Item = ArtifactAttachment>
) -> &mut Self
pub fn attached( &mut self, attachment: impl IntoIterator<Item = ArtifactAttachment> ) -> &mut Self
Write the /Attached
entry to set where the artifact is attached to the
page. Only for pagination and full-page background artifacts. Specific
to artifacts. PDF 1.4+.
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§
Auto Trait Implementations§
impl<'a> Freeze for Artifact<'a>
impl<'a> RefUnwindSafe for Artifact<'a>
impl<'a> Send for Artifact<'a>
impl<'a> Sync for Artifact<'a>
impl<'a> Unpin for Artifact<'a>
impl<'a> !UnwindSafe for Artifact<'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