Free Support Forum - aspose.cloud

PDF to HTML REST API conversion via cURL

My query refers to the cURL example on https://docs.aspose.cloud/display/pdfcloud/Convert+PDF+to+Other+File+Formats

I am trying to use the cURL for Aspose .PDF REST API to convert a PDF to HTML and download the HTML output as a ZIP file. Unfortunately, although I get the authentication token in the first step, I get a failure message when I try to use the token to access the conversion to HTML API.

The failure message is

{“Message”:“Authentication failed!”}

See the pdfs below showing the PHP code (code 2 doc.pdf) I use and its output (code 1 doc.pdf)

code 1 doc.pdf (412.2 KB)

code 2 doc.pdf (226.0 KB)

Can someone please help me with this issue?

Thanks,
Pratyush
code 2 doc.pdf (226 KB)
code 1 doc.pdf (412 KB)

@debp85

We are sorry for your inconvenience. Please note you need to use base URI “https://api.aspose.cloud/v3.0” instead of “https://api.aspose.cloud/v1.1”. It will resolve the issue. We are also in process of updating the documentation for new API Version.

Yes that solved the issue.

Thanks,
Pratyush

1 Like