Free Support Forum -

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

[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)


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

curl -X GET "" 
-H "accept: multipart/form-data" 
-H "authorization: Bearer [Access_Token]" 
-H "x-aspose-client: Containerize.Swagger" 
--output C:/Temp/