#estevanjantsk-invoice-PDF-render

1 messages ยท Page 1 of 1 (latest)

sand verge
#

Hello ๐Ÿ‘‹
I haven't tried this myself personally so let me look around and see what I find

tall hedge
#

thanks hanzo

vivid solar
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

vivid solar
#

I tried to open the link you sent and it works fine for me

tall hedge
#

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

vivid solar
#

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
tall hedge
#

hmmm I will try

#

thanks tarzan, will try to add here

vivid solar
#

let me know if you need any more help

tall hedge
#

๐Ÿ˜ฆ

vivid solar
#

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

tall hedge
#

๐Ÿคž

tall hedge
#

It worked!!!

#

@vivid solar thanksss!

vivid solar
#

you're more than welcome ๐Ÿ™‚

#

you should celebrate this! you deserve it ๐Ÿ™‚