cainteoir_document_view: get/set a document