Embed PDF file into iparams.html


I want to embed a PDF file into iparams.html using <embed> or <iframe>.
However, I got the issue:
“Failed to load ‘http://localhost:10001/custom_configs/assets/terms.pdf’ as a plugin, because the frame into which the plugin is loading is sandboxed.”
Is this related to some security policy on the Freshdesk side? If I run the HTML on local, it works fine. Though, if I run it with the command “fdk run”, I get the error.
Is there any way to embed the pdf file into iparams.html?

Thank you,
Nhat Nguyen

Good Day!
Yes we had sand boxed and we will allow only specific contents, I will check the feasibility of this and get back to you


1 Like

Hi @Nhat_Nguyen,
Good Day,
There is no other possibility to render the PDF directly in Iparams since it is sandboxed,
you can use an alternative way https://mozilla.github.io/pdf.js which it supports PDF rendering in canvas object,
it dosen’t have the same User experience like i.e it does not build a viewer, you have to do it manually if you want the same experience

I hope it helps :slight_smile:



Thank you very much.

Nhat Nguyen