简体   繁体   English

如何在 Microsoft Teams 中使用 iframe 显示 pdf

[英]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.作为变通方法,您可以始终考虑使用第三方 Adob​​e 应用程序,或者如果网站上托管了 PDF(s),则考虑使用网页选项卡,看看是否能够在网站上进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不使用IFrame的情况下在页面上显示PDF的HTML5转换? - How to display HTML5 convert of a PDF on page without using an IFrame? 如何使用 OnSubmit Googleform 和 Iframe 在其他网站上显示 PDF 链接? - how to display PDF links on other sites using OnSubmit Googleform and Iframe? 如何在iframe中显示来自db的pdf - How to display pdf from db in iframe 我可以使用 iframe 或其他技术将 Microsoft Teams 视频会议嵌入我的网站吗? - Can I embed a Microsoft Teams video meeting into my website using an iframe or other technology? 如何在iframe中显示JasperReports pdf文件? - How to display a JasperReports pdf file in an iframe? 如何显示图片(img)或pdf(iframe)? - How to display either image (img) or pdf (iframe)? 如何在 web 应用程序中使用 nodejs 创建微软团队会面链接 - How to create microsoft teams meet link using nodejs in web app 如何使用 Microsoft Share To Teams 按钮对用户进行身份验证? - How to authenticate user using Microsoft Share To Teams Button? 是否可以在 Iframe 上嵌入 Microsoft Teams 会议? - it's possible do embed Microsoft Teams meeting on Iframe? Microsoft Teams Adal 静默身份验证失败(iframe 沙箱) - Microsoft Teams Adal silent Authentication fail (iframe sandbox)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM