Add generated document