@Tess I'm trying to accomplish roughly the same goal, but my container displays some data and some images from a public S3 bucket as well. utils.downloadPage works to create a PDF with the data in the container I specified but it does not generate the images. Any possible solution that would include the images? Thanks!
Hi @Miah2877,
Thanks for reaching out! Are you using a Generate URL query? Does it work if you switch to a Read file query (and display the readQuery.data.Body
in the image component)?
@Tess I am reading the public URL from a query to display the image in the container which effectively displays the images in the web view but doesn't include the images in the PDF download.
Hm can we see a screenshot of the SelectImages query and results?
Ah, I see. Thanks!
You could create a new generic REST API query:
that is a GET request where the url is {{SelectImages.data.public_url[1]}}
Then, the image component's Image Source would be {{restQuery.data.base64Data}}
where restQuery
is the name of your generic rest api query
Thanks @Tess , I could use your additional guidance as now I'm not getting the response I'd expect, namely the image displaying:
Hmm what does {{SelectImages.data.public_url[1]}}
evaluate to? Does it return the image if you put the value of {{SelectImages.data.public_url[1]}}
in a new browser tab?
If I paste the value returned for the URL my browser prompts me to save the file locally, it doesn't just display the image that resides at that URL.
The PDF generator is limited on generating with images. needs to be a "public" url for the image to work in the PDF when generated.
Does it help to specify the content type in your REST API query?