Functions

date_parse (date, timet)

error_quark ()

get_backend ()

get_version ()

named_dest_from_bytestring (data)

named_dest_to_bytestring (name)

Details

Poppler.date_parse(date, timet)
Parameters:
  • date (str) – string to parse

  • timet (int) – an uninitialized #time_t

Returns:

True, if timet was set

Return type:

bool

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

New in version 0.12.

Poppler.error_quark()
Return type:

int

Poppler.get_backend()
Returns:

The backend used by poppler

Return type:

Poppler.Backend

Returns the backend compiled into the poppler library.

Poppler.get_version()
Returns:

the version of poppler.

Return type:

str

Returns the version of poppler in use. This result is not to be freed.

Poppler.named_dest_from_bytestring(data)
Parameters:

data (bytes) – the bytestring data

Returns:

the named dest

Return type:

str

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 GLib.free().

New in version 0.73.

Poppler.named_dest_to_bytestring(name)
Parameters:

name (str) – the named dest string

Returns:

a new bytestring, or None

Return type:

bytes or None

Converts a named dest string (e.g. from Poppler.Dest.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 None.

The returned data must be freed using GLib.free().

New in version 0.73.