Top |
gboolean | poppler_date_parse () |
char * | poppler_named_dest_from_bytestring () |
guint8 * | poppler_named_dest_to_bytestring () |
gboolean poppler_date_parse (const gchar *date
,time_t *timet
);
Parses a PDF format date string and converts it to a time_t. Returns FALSE if the parsing fails or the input string is not a valid PDF format date string
Since: 0.12
char * poppler_named_dest_from_bytestring (const guint8 *data
,gsize length
);
Converts a bytestring into a zero-terminated string suitable to
pass to poppler_document_find_dest()
.
Note that the returned string has no defined encoding and is not suitable for display to the user.
The returned data must be freed using g_free()
.
Since: 0.73
guint8 * poppler_named_dest_to_bytestring (const char *name
,gsize *length
);
Converts a named dest string (e.g. from PopplerDest.named_dest) into a
bytestring, inverting the transformation of
poppler_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 NULL
.
The returned data must be freed using g_free()
.
name |
the named dest string |
|
length |
a location to store the length of the returned bytestring. |
[out] |
Since: 0.73