Free Support Forum -

PDF to HTML conversion with Aspose.PDF Cloud SDK for .NET C# returns 400 bad request

I’m having trouble using the cloud api to convert pdf to html.

My code:

public byte[] ConvertPdfToHtml(byte[] doc, string fileName)
            var pdfApi = new PdfApi(ConfigurationManager.AppSettings["AsposeKey"],
                ConfigurationManager.AppSettings["AsposeSID"], ConfigurationManager.AppSettings["AsposeUrl"]);

                var apiResponse = pdfApi.PutConvertDocument("html", null,
                    Path.GetFileNameWithoutExtension(fileName) + ".html", doc);

                if (apiResponse != null && apiResponse.Status.Equals("Ok"))
                    return apiResponse.ResponseStream;

                throw new Exception("Couldn't convert pdf - " + fileName + " to HTML...");
            catch (Exception ex)
                NLogger.LogError("ConvertPdfToHtml - " + ex);

When making the call, I am noticing this error under the My Usage tab:

Error: The method or operation is not implemented… Method: Convert document to the format specified on-line… Parameters: format ‘html’,url ‘’,outPath ‘testadobe.html’

Thereby, am I calling the method wrong somehow? I’m using the same method on doc/docx with the wordsapi with good results so far…

If the method is indeed not implemented, yet publicly exposed, what I’m after is to get html back with embedded images preferably without using storage, I can’t seem to find an example on google because all the aspose cloud documentation links are returning Page Not Found.


We can replicate the 400 bad request error in our environment. We are in communication with the concerned team and will let you know once an update is available.


We have two APIs to convert PDF document to HTML .

  1. GET /v{version}/pdf/{name}
  2. PUT /v{version}/pdf/convert

I recommend you to use the first one. The following cURL example will help you to understand an API.

curl -v "" \
-X GET \
-H "Content-Type: application/json" \
-H "Accept: multipart/form-data" \

As you may have observed, I set the output (-o) file extension to .zip, instead of .html, the reason is that the converted file contains multiple files (.html, .css, image files), so API zipped the output file.

P.S. The resource file Sample.pdf and output file are attached.

Sample.pdf (360.7 KB) (17.8 KB)