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"]);
try
{
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);
throw;
}
}
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.