Functions

date_parse (date, timet)

error_quark ()

get_available_signing_certificates ()

get_backend ()

get_certificate_info_by_id (id)

get_nss_dir ()

get_version ()

named_dest_from_bytestring (data)

named_dest_to_bytestring (name)

set_nss_dir (path)

set_nss_password_callback (func)

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_available_signing_certificates()
Returns:

all available signing certificate information

Return type:

[Poppler.CertificateInfo]

Get all available signing certificate information

Poppler.get_backend()
Returns:

The backend used by poppler

Return type:

Poppler.Backend

Returns the backend compiled into the poppler library.

Poppler.get_certificate_info_by_id(id)
Parameters:

id (str) –

Returns:

a Poppler.CertificateInfo or None if not found

Return type:

Poppler.CertificateInfo

Get certificate by nick name

Poppler.get_nss_dir()
Returns:

nss directroy.

Return type:

str

Get NSS directory

New in version 23.07.0.

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.

Poppler.set_nss_dir(path)
Parameters:

path (str) –

Set NSS directory

New in version 23.07.0.

Poppler.set_nss_password_callback(func)
Parameters:

func (Poppler.NssPasswordFunc) – a Poppler.NssPasswordFunc that represents a signature annotation

A callback which asks for certificate password

New in version 23.07.0.