Return document content and version atomically