Free Support Forum - aspose.cloud

Convert PDF to HTML method of Aspose.PDF REST API is not converting the PDF into proper HTML format

Hi,
[Get] : /pdf/{name}/convert/html API response is not in the HTML format.
Please look into below files for refence:
The file input I’m giving to API is :
aa3094b8-2942-417f-9025-1425f4dc8a83.pdf (21.0 KB)
The file out put I’m getting is :
image.png (87.9 KB)

@vinodhkumar

Please note GetPdfInStorageToHtml API method returns output in response as stream. You need to write output to filePDFtoHTML.zip (35.0 KB). Please check sample cURL code for reference.

curl -X GET "https://api.aspose.cloud/v3.0/pdf/aa3094b8-2942-417f-9025-1425f4dc8a83.pdf/convert/html" 
-H "accept: multipart/form-data" 
-H "authorization: Bearer [Access_Token]" 
-H "x-aspose-client: Containerize.Swagger" 
--output C:/Temp/PDFtoHTML.zip