"Return data from api" as pdf results in an error from pdf viewer in browser

The pdf viewer shows that:

anyone?

can you give more detail here?

on first glance you likely just need to change “items file” to “items file url”

Hey, ive already done that but sadly it results in the same url

Ive found out that a proxy or the pdf as binary data could be a solution to streamline the needed content but couldnt find a working solution with bubble neither a plugin helped.

I basically want to return the file as data when a given url is entered or link is clicked eg “file1”. So it gets fetched from the workflow with https://example.com/api...wf/return-file?id=file1