有什么限制吗?控制台没有显示任何错误。
我正在尝试使用基本的嵌入标签显示 pdf:
<embed src="./someFile.pdf" width="500" height="375" type='application/pdf'>
但是我的 Electron 申请显示:
最佳答案
Electron 在底层使用 Chromium,我不认为 Chromium 像 Chrome 一样与 PDF 查看器插件捆绑在一起。您需要使用适当的插件重新编译 Electron。您可能还想了解一些 Javascript PDF 查看器。
PDF.js似乎是一个可靠的选择,而且确实 another Electron user似乎是用它来解决你的确切问题:)
祝你好运!
关于html - Github 的 electron 不允许嵌入标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36042333/