Pdf documents not converted to html


#1

I have a couple of pretty simple pdf files that aren’t being converted to html. I’m using the post REST api http://api.aspose.com/v1.1/words/convert?format=html, and getting back a response: {“Message”:“Failed to convert PDF document to Word format”}. I also tried by directly using your api reference site (https://apireference.aspose.cloud/words/) and get the same error.

I’ve tried opening these pdfs with Microsoft Word, as well as using several online pdf converters, and none of them had problems converting the pdfs. Can you please advise?

Test.pdf (7.8 KB)
sample.pdf (53.6 KB)


#2

@talentho

Please use Aspose.PDF REST APIs to convert PDF document to HTML. You may use one of the following three APIs:

  1. Converts PDF document (located on storage) to Html format and returns resulting file in response content
  2. Converts PDF document (located on storage) to Html format and uploads resulting file to storage
  3. Converts PDF document (in request content) to Html format and uploads resulting file to storage.

Cloud SDKs to call these APIs are available at https://github.com/aspose-pdf-cloud.

We hope this helps!