Add document metadata during conversion