Callbacks

AttachmentSaveFunc (buf, *data)

MediaSaveFunc (buf, *data)

NssPasswordFunc (text)

Details

Poppler.AttachmentSaveFunc(buf, *data)
Parameters:
Returns:

True if successful, False (with error set) if failed.

Return type:

bool

Specifies the type of the function passed to Poppler.Attachment.save_to_callback(). It is called once for each block of bytes that is “written” by Poppler.Attachment.save_to_callback(). If successful it should return True. If an error occurs it should set error and return False, in which case Poppler.Attachment.save_to_callback() will fail with the same error.

Poppler.MediaSaveFunc(buf, *data)
Parameters:
Returns:

True if successful, False (with error set) if failed.

Return type:

bool

Specifies the type of the function passed to Poppler.Media.save_to_callback(). It is called once for each block of bytes that is “written” by Poppler.Media.save_to_callback(). If successful it should return True. If an error occurs it should set error and return False, in which case Poppler.Media.save_to_callback() will fail with the same error.

New in version 0.14.

Poppler.NssPasswordFunc(text)
Parameters:

text (str) –

Return type:

str