Hi,
Not sure if it's just me, but when trying to convert a docx to pdf file I always get a 404 not found error message and checking the error stack it seems to happen in the getPDF REST call from ConvertPDF module.
When checking the convertapi.com dashboard I see the conversions were successful, but in OutSystems I cannot retrieve the files accordingly.
Regards,
Bogdan
Hi Bogdan,
It looks like the API may have changed, affecting the response structure of the endpoints. Based on the current implementation of this component, the API is expected to return a JobId, which is then used as an input parameter for the getPDF REST call.
However, when I tested an endpoint, specifically converting a PNG to a PDF, the response was quite different.
Since the API no longer returns a JobId, calling getPDF results in a 404 Not Found error.
A possible workaround is to update the endpoints. To save the converted file, you’ll need to convert the FileData response parameter back to binary before downloading it.
I have attached an .oml with a possible workaround.
Hi Beatriz,
Indeed, that seems to be the reason. Anyway I'll look for alternatives, because this convertor works quite well, but requires a license for enterprise use so I'm checking if there are other options that don't mess up the format of the output PDF file.
Thanks and regards,
Sorry for the late response, it's like Beatriz described. I'll try to update the component in the future.
Cheers
New version 1.0.4 available!