Download PDF files using Aspose.PDF REST returning corrupted Files

The Cloud APIs are returning corrupt files, despite my logs showing successful interactions over the API. I receive a 70KB file response in a download request, but the contents cannot be opened. Prior to today, this was working just fine, then stopped working.


Is there a known outage or bug in the Cloud APIs? Was there a change in the API?

Hi


Thank you for contacting support. We did not notice any issue or interruption in the service. Could you please share a sample and other details i.e. Development language/platform, source code and documents etc. It will help us to further investigate the issue in details.

Hi Ryan,

There was neither a change in the API nor any interruption in the service. We did not notice any issue during our testing and many customers have used the service during these hours but no other customer has reported such issue. However we will investigate in detail why this happened at your end and share more details with you.

Sorry for the inconvenience.

Best Regards,

@rsieve

As an update, please note the latest API Version V3 of Aspose.PDF Cloud has its own API methods for storage operations. Now you can download PDF files from storage using DownloadFile method of Aspose.PDF Cloud.

// First get JWT Access Token
// Get App Key and App SID from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token" 
-d "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_Key]" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

curl -X GET "https://api.aspose.cloud/v3.0/pdf/storage/file/02_pages.pdf" 
-H "accept: multipart/form-data" 
-H "authorization: Bearer [Access_Token]" 
--output C:/Temp/02_pages.pdf