Struct pdf_writer::writers::FileSpec [−][src]
pub struct FileSpec<'a> { /* fields omitted */ }
Expand description
Writer for a file specification dictionary.
This struct is created by Annotation::file_spec
,
Reference::file_spec
, and Action::file_spec
.
Implementations
Write the /FS
attribute to set the file system this entry relates to.
If you set the system
argument to Name(b"URL")
, this becomes an URL
specification.
Write the /F
attribute to set the file path. Directories are indicated
by /
, independent of the platform.
Write the /UF
attribute to set a Unicode-compatible path. Directories
are indicated by /
, independent of the platform. PDF 1.7+.
Write the /V
attribute to indicate whether to cache the file.
Write the /Desc
attribute to set a file description. PDF 1.6+.
Write the /EF
attribute to reference an embedded file.
PDF 1.3+.
This only sets an embedded file for the F
attribute corresponding to
the path
method. You will need to write this dictionary
manually if you need to set UF
.
Methods from Deref<Target = Dict<'a>>
Start writing a pair with an arbitrary value.
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.