Sorry if this has been asked before, I couldn’t find anything relevant.
I have table on my page that when a row is clicked it calls a Server Connect which does a GET request, passing the ID to an API which returns a response with a pdf stream.
{
"status": 200,
"headers": {
"content-type": "application/pdf",
"content-length": "14027",
"server": "nginx",
"expires": "Fri, 11 Nov 2022 16:31:54 GMT",
"cache-control": "max-age=0, no-cache, no-store",
"pragma": "no-cache",
"date": "Fri, 11 Nov 2022 16:31:54 GMT",
"connection": "close"
},
"data": "%PDF-1.7\r%�������\r1 0 obj\n .......... and so on
How would I go about getting the PDF to preview on the page in an iframe?
Thanks in advance