Callbacks¶
|
|
|
|
|
Details¶
- Poppler.AttachmentSaveFunc(buf, *data)¶
- Parameters:
buf (
bytes
) – buffer containing bytes to be written.data (
object
orNone
) – user data passed toPoppler.Attachment.save_to_callback
()
- Returns:
- Return type:
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” byPoppler.Attachment.save_to_callback
(). If successful it should returnTrue
. If an error occurs it should set error and returnFalse
, in which casePoppler.Attachment.save_to_callback
() will fail with the same error.
- Poppler.MediaSaveFunc(buf, *data)¶
- Parameters:
buf (
bytes
) – buffer containing bytes to be written.data (
object
orNone
) – user data passed toPoppler.Media.save_to_callback
()
- Returns:
- Return type:
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” byPoppler.Media.save_to_callback
(). If successful it should returnTrue
. If an error occurs it should set error and returnFalse
, in which casePoppler.Media.save_to_callback
() will fail with the same error.New in version 0.14.