create_buffer_from_document: just pass the cainteoir::document object