Can download pdf file but the output is the Resident Id