[英]How to display pdf using iframe in Microsoft Teams
I have a C# pdf comparison app hosted on azure and i just want to display the compared pdf in iframe.我有一个托管在 azure 上的 C# pdf 比较应用程序,我只想在 iframe 中显示比较的 pdf。 This is working fine in a browser but when i am integrating it to teams the compared pdf is not showing in iframe.这在浏览器中工作正常,但是当我将它集成到团队时,比较的 pdf 没有显示在 iframe 中。 After clicking on compare button the output pdf is downloaded automatically but nothing is being display in iframe.单击比较按钮后,输出 pdf 会自动下载,但 iframe 中没有显示任何内容。
This is the block of code which i am using for embedding:这是我用于嵌入的代码块:
success: function (Data) { if (Data) { var embed1 = document.getElementById('outputPdf'); embed1.src = "../../PythonFile/OutputPdf/" + Data; $("#outputPdf").css("display", "block"); } },
<iframe id="outputPdf" type="application/pdf" style="display:none;width:100%" height="600"></iframe>
@Asif Hussain: In Microsoft Teams, we have only be able to download the PDF file in "Files". @Asif Hussain:在 Microsoft Teams 中,我们只能在“文件”中下载 PDF 文件。 It's not possible to precise the download file name or the download file location.无法精确下载文件名或下载文件位置。 The use of PDF's needs to be improved with Microsoft Teams.需要通过 Microsoft Teams 改进 PDF 的使用。 There is no official solution - we have been waiting for one for a while.没有官方解决方案 - 我们已经等了一段时间了。 As workarounds, you could always look at using the Third Party Adobe applications, or if a PDF (s) is hosted on a site, look to use a web page tab and see if the ability to manipulate on the site pulls through.作为变通方法,您可以始终考虑使用第三方 Adobe 应用程序,或者如果网站上托管了 PDF(s),则考虑使用网页选项卡,看看是否能够在网站上进行操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.