Add binary serialization for fully extracted documents.