Specified content type is not supported: application/pdf. when converting a pdf to markdown

Hi,

I got an error “Specified content type is not supported: application/pdf” when trying to convert a pdf to markdown while on a different sandbox with the same file it works fine.

Can you help me out on this?

Thanks

@cperuzzi

We are sorry for the inconvenience. Please share your input document along with the sample code to investigate the issue.

Here are the requested informations

test-bad.pdf (180.7 KB)

test-good.pdf (180.5 KB)

const pdfApi = new WordsApi(<id>, <secret>);
  const requestDocument = fs.createReadStream("./test.pdf");
  const request = new ConvertDocumentRequest({
    document: requestDocument,
    format: "md",
  });

 const test = (await pdfApi.convertDocument(request)).body.toString();
 console.log(test);

@cperuzzi
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSCLOUD-2634

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSCLOUD-2634) have been fixed in this update. This message was posted using Bugs notification tool by Ivanov_John