download document contents