Trouble getting a PDF doc after API call to PDF generator tool via Xano

Answered

Hi,

I'm having a problem getting a PDF out of an API call to Eledo, a PDF generative tool.

When I'm using Postman, I get a PDF (see picture)

When I'm using Xano via the API call action (and using exactly the same params, header etc...), I get a string starting like this: "%PDF-1.4 % 1 0 obj << /Type /Catalog /Version /1.4 /Pages 2 0 R" (see picture)

In my Xano call, I'm using the create file resource to transform this result into a PDF and send it to an E-signature tool and it works fine: I get a pdf in the end.

But I need to send the pdf generated by Eledo through Xano to Weweb to get a blob out of it (I don't need to add this PDF to the Xano database and can't call Eledo through Weweb because I need to hide the API key).

Small detail: when I was using Weweb to call Eledo via Axios, I would get a pdf (see picture)

I tried to see what comes out of the create file resource of Xano to use it but it only comes out as a string.

What should I do to get a pdf out of Xano ?

Thank you for your help :)

17 replies