When I try to use ConvertAPIs PDF to txt with Node.js i get the Response 5002: PDF Damaged. Here is my code:
let convertapi = require('convertapi')('secret');
return convertapi.convert('txt', {
File: pdfFilePath,
}, 'pdf')
I return the Promise to resolve it elsewhere in my Program. As far as my understanding goes, it is an Internal Server Error. There is nothing wrong with the PDF i put in, when I try to convert it with their Website it works.
Thanks in advance for your answers.