Embed PDF file into iparams.html

Hello,

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?
image

Thank you,
Nhat Nguyen

@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

Thanks,
Santhosh

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:

Thanks
Santhosh

4 Likes

Thank you very much.

Regards,
Nhat Nguyen