How to convert Encapsulated Postscript (EPS) to PNG or JPEG using Aspose.PDF REST API

Using Aspose.PDF Cloud, is there a way to convert Encapsulated Postscript files (EPS) into PNG or JPEG?

Thanks

@techteam

Yes, you can convert EPS to PNG/JPEG using Aspose.PDF Cloud API but in two steps. First, you need to convert EPS to PDF and then convert the specified page to PNG/JPEG.

GET ​/pdf​/create​/ps Convert PS file (located on storage) to PDF format and return resulting file in response.

​PUT /pdf​/{name}​/create​/ps Convert PS file (located on storage) to PDF format and upload resulting file to storage.

However, if you want to convert EPS to PNG/JPEG directly in a single API call then you can use Aspose.Imaging Cloud for the purpose.

Thank you @tilal.ahmad – the Imaging cloud seems to be perfect. However, the API endpoint is returning 404 when authenticating on the Swagger test page. https://api.aspose.cloud/v3.0/imaging/swagger/connect/token

image.png (17.3 KB)

I will try the SDKs and let you know

@techteam

We have noticed the issue with the Web API Explorer authorization issue and logged a ticket (IMAGINGCLOUD-685) for rectification. Meanwhile, you can use SDKs or if you want to test it via cURL command then you can get an Access token via cURL or postman using the following command. You can also check documentation for Aspose.Imaging Cloud API details.

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

Thanks, the API/SDK authentication works.

Regards

1 Like

@techteam

We have good news for you. We have fixed the above swagger authorizations issue IMAGINGCLOUD-685 in Aspose.Imaging Cloud 20.6.