pub fn named_dest_to_bytestring(name: &str) -> Vec<u8>
Expand description

Converts a named dest string (e.g. from PopplerDest.named_dest) into a bytestring, inverting the transformation of [named_dest_from_bytestring()][crate::named_dest_from_bytestring()].

Note that the returned data is not zero terminated and may also contains embedded NUL bytes.

If name is not a valid named dest string, returns None.

The returned data must be freed using g_free().

name

the named dest string

Returns

a new bytestring, or None