Struct pdf_writer::writers::Reference
source · pub struct Reference<'a> { /* private fields */ }
Expand description
Writer for an external XObject reference dictionary. PDF 1.4+.
This struct is created by FormXObject::reference
.
Implementations§
source§impl<'a> Reference<'a>
impl<'a> Reference<'a>
sourcepub fn file_spec(&mut self) -> FileSpec<'_>
pub fn file_spec(&mut self) -> FileSpec<'_>
Start writing the /F
attribute to set a file specification dictionary.
Required.
sourcepub fn page_number(&mut self, page: i32) -> &mut Self
pub fn page_number(&mut self, page: i32) -> &mut Self
Write the /Page
attribute to set the page number. Setting the
attribute through either this function or Self::page_label
is
required. Page indices start at 0.
sourcepub fn page_label(&mut self, label: TextStr<'_>) -> &mut Self
pub fn page_label(&mut self, label: TextStr<'_>) -> &mut Self
Write the /Page
attribute to set the page label. Setting the attribute
through either this function or Self::page_number
is required.
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 Reference<'a>
impl<'a> RefUnwindSafe for Reference<'a>
impl<'a> Send for Reference<'a>
impl<'a> Sync for Reference<'a>
impl<'a> Unpin for Reference<'a>
impl<'a> !UnwindSafe for Reference<'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