pub struct Names<'a> { /* private fields */ }
Expand description
Writer for a names dictionary.
This dictionary can map various objects to names using name trees. This
struct is created by Catalog::names
.
Implementations§
Source§impl Names<'_>
impl Names<'_>
Sourcepub fn destinations(&mut self) -> NameTree<'_, Ref>
pub fn destinations(&mut self) -> NameTree<'_, Ref>
Start writing the /Dests
attribute to provide associations for
destinations.
Sourcepub fn appearances(&mut self) -> NameTree<'_, Ref>
pub fn appearances(&mut self) -> NameTree<'_, Ref>
Start writing the /AP
attribute to provide associations for appearance
streams. PDF 1.3+.
Sourcepub fn javascript(&mut self) -> NameTree<'_, Ref>
pub fn javascript(&mut self) -> NameTree<'_, Ref>
Start writing the /JavaScript
attribute to provide associations for
JavaScript actions. PDF 1.3+.
Sourcepub fn pages(&mut self) -> NameTree<'_, Ref>
pub fn pages(&mut self) -> NameTree<'_, Ref>
Start writing the /Pages
attribute to name pages. PDF 1.3+.
Sourcepub fn templates(&mut self) -> NameTree<'_, Ref>
pub fn templates(&mut self) -> NameTree<'_, Ref>
Start writing the /Template
attribute to name pages outside
of the page tree as templates for interactive forms. PDF 1.3+.
Sourcepub fn capture_ids(&mut self) -> NameTree<'_, Ref>
pub fn capture_ids(&mut self) -> NameTree<'_, Ref>
Start writing the /IDS
attribute to map identifiers to Web Capture
content sets. PDF 1.3+.
Sourcepub fn capture_urls(&mut self) -> NameTree<'_, Ref>
pub fn capture_urls(&mut self) -> NameTree<'_, Ref>
Start writing the /URLS
attribute to map URLs to Web Capture content
sets. PDF 1.3+.
Sourcepub fn embedded_files(&mut self) -> NameTree<'_, Ref>
pub fn embedded_files(&mut self) -> NameTree<'_, Ref>
Start writing the /EmbeddedFiles
attribute to name embedded
files. PDF 1.4+.
Note that this key is forbidden in PDF/A-1, and restricted in PDF/A-2 and PDF/A-4.
Sourcepub fn alternate_presentations(&mut self) -> NameTree<'_, Ref>
pub fn alternate_presentations(&mut self) -> NameTree<'_, Ref>
Start writing the /AlternatePresentations
attribute to name alternate
presentations. PDF 1.4+.
Note that this key is forbidden in PDF/A.
Sourcepub fn renditions(&mut self) -> NameTree<'_, Ref>
pub fn renditions(&mut self) -> NameTree<'_, Ref>
Start writing the /Renditions
attribute to name renditions. The names
must conform to Unicode. PDF 1.5+.
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.