【发布时间】:2014-01-10 21:03:39
【问题描述】:
我有一个非常简单的 html 文件,只有一个简单的链接
<a href="output.pdf">Get the file</a>
我希望,例如在 Windows 上,用户可以在 Adobe Reader 中看到 pdf,就像从浏览器下载和打开一样。
但是当我启动 nw.exe C:\Node-WebKit-Project 并单击链接时,在控制台上我看到了:
资源被解释为 Document 但以 MIME 类型传输 应用程序/pdf:“file:///C:/Node-WebKit-Project/output.pdf”。
如何允许打开pdf?
【问题讨论】:
标签: node-webkit