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>>

The number of written pairs.

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).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Start writing the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.