Having Problem To Convert Word Documents to PDF Using cURL Without Changing Font

  1. Error:PUT http://api.aspose.cloud/v1.1/words/convert 400
  2. Method Name: PutConvertDocument
  3. Product: Aspose.Words
  4. API Version: v1.1
  5. Details: Error: Error while get files in folder ‘fonts’ from storage: AmazonS3 exception: Object is not exists. Bucket ‘afc-filestorage’, path '82792/c45df270-9662-4f01-955d-53bb02988d42/fonts/, srcVersionId ‘’ => Error while get files in folder ‘fonts’ from storage: AmazonS3 exception: Object is not exists. Bucket ‘afc-filestorage’, path '82792/c45df270-9662-4f01-955d-53bb02988d42/fonts/, srcVersionId ‘’ => AmazonS3 exception: Object is not exists. Bucket ‘afc-filestorage’, path '82792/c45df270-9662-4f01-955d-53bb02988d42/fonts/, srcVersionId ‘’. Method: Export the document from request into the specified format on-line… Parameters: format ‘pdf’,outPath ‘’,documentFileName ‘sourceFilename’

How can you quickly fix this problem, as it is severely affecting our business?

@vh24devteam

I am unable to notice any issue when I convert Word documents to PDF using cURL with Aspose.Words Cloud API. It seems your font files are missing in the font folder that causing the problem. Please double check the availability/path of the fonts folder and font files. Hopefully, it will resolve the issue.

Secondly, you are using quite an old API version. Please use the latest API Version 4.0. It uses JSON Web Token(JWT) for API request authentication along with many other new improvements and features.

Convert Microsoft Word Document to PDF Online

# First get Access Token
# Get Client ID and Client Key from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token" 
-d "grant_type=client_credentials&client_id=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxx" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

# Convert DOCX to PDF
curl -X PUT "https://api.aspose.cloud/v4.0/words/convert?format=pdf&fontsLocation=Fonts" 
-H "accept: application/octet-stream" 
-H "Authorization: Bearer [Access_Token]" 
-H "Content-Type: multipart/form-data" 
-F "document"="@C:/Temp/Test.docx" 
--output C:/Temp/Test.pdf