added pdf get method and resume