#estevanjantsk-invoice-PDF-render
1 messages ยท Page 1 of 1 (latest)
Hello ๐
I haven't tried this myself personally so let me look around and see what I find
thanks hanzo
๐ taking over for my colleague. Let me catch up.
I tried to open the link you sent and it works fine for me
the link opens fine but I'm getting blocked if I try to put it into and iframe so I can do a preview of the file
like in this screen
I guess you could fetch that url and get its response body. and once you do you can use something like this
<script type="text/javascript">
var doc = document.getElementById('FileFrame').contentWindow.document;
doc.open();
doc.write('<html><head><title></title></head><body>Hello world.</body></html>');
doc.close();
</script>```
to pass in the content of the html to the iframe
let me know if you need any more help
you can do that on the server-side and collect the html content and expose an API to your application that gets you the content
you shouldn't be having the CORS issue when you're doing this server-side
๐ค
