pub struct DeveloperExtension<'a> { /* private fields */ }
Expand description
Writer for a developer extension dictionary. PDF 1.7+.
An array of this struct is created by Catalog::extensions
.
Implementations§
source§impl<'a> DeveloperExtension<'a>
impl<'a> DeveloperExtension<'a>
sourcepub fn base_version(&mut self, major: u8, minor: u8) -> &mut Self
pub fn base_version(&mut self, major: u8, minor: u8) -> &mut Self
Write the /BaseVersion
attribute to specify the version of PDF this
extension is based on. Required.
sourcepub fn extension_level(&mut self, level: i32) -> &mut Self
pub fn extension_level(&mut self, level: i32) -> &mut Self
Write the /ExtensionLevel
attribute to specify the version of the
extension. 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.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
source§impl<'a> Deref for DeveloperExtension<'a>
impl<'a> Deref for DeveloperExtension<'a>
source§impl<'a> DerefMut for DeveloperExtension<'a>
impl<'a> DerefMut for DeveloperExtension<'a>
source§impl<'a, 'any> Rewrite<'a> for DeveloperExtension<'any>
impl<'a, 'any> Rewrite<'a> for DeveloperExtension<'any>
source§type Output = DeveloperExtension<'a>
type Output = DeveloperExtension<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for DeveloperExtension<'a>
impl<'a> RefUnwindSafe for DeveloperExtension<'a>
impl<'a> Send for DeveloperExtension<'a>
impl<'a> Sync for DeveloperExtension<'a>
impl<'a> Unpin for DeveloperExtension<'a>
impl<'a> !UnwindSafe for DeveloperExtension<'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