A method call in Poppler returns a GDate
object in my Python code. I cannot find a way how to nicely print this object.
Following the Python GI API Reference, I came up with the following:
gdate_object = annot_mapping.annot.get_date()
destination_buffer = '.' * 50
print('Output:', GLib.Date.strftime(destination_buffer, 50, '%c', gdate_object))
print('Buffer:', annot_time)
However, this places nothing in the buffer, while it does output the written buffer size.
How do I get access to the destination buffer?