18
Views
4
Comments
[Convert to PDF (ConvertAPI)] 404 not found for getPDF action
convert-to-pdf-convertapi
Service icon
Forge asset by Tiago Pereira
Application Type
Service

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

2022-12-22 10-00-39
Beatriz Sabino

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.

CovertPDF_Example.oml
2024-01-18 12-42-28
Bogdan Boglea

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,

Bogdan

2025-09-08 08-31-32
Tiago Pereira

Hi Bogdan,

Sorry for the late response, it's like Beatriz described. I'll try to update the component in the future.

Cheers

2025-09-08 08-31-32
Tiago Pereira

New version 1.0.4 available!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.