But if you need same requirement to download file response from api and user to you need to create your local pdf file url or you can give any live url for download.