将 Foxit PDF Reader 嵌入网页

发布于 2024-07-14 22:08:06 字数 437 浏览 8 评论 0原文

我需要将Foxit Reader(PDF阅读软件)嵌入到网页中。 有谁知道以下代码中使用的正确的 classid 和参数:

<object id="pdfReaderObj" classid="CLSID:XXXX" width="500" height="700">
    <param name="Filename" value="/1234-56789-abc-123-3.pdf">
    <param name="SRC" value="/1234-56789-abc-123-3.pdf">
    You must install Foxit Reader to view this document.
</object>

此外,如果有人有企业部署、静默安装、注册表设置等经验。这些也将受到欢迎。

谢谢

I need to embed Foxit Reader (PDF reading software) into a web page. Does anybody know the correct classid and parameters to use in the following code:

<object id="pdfReaderObj" classid="CLSID:XXXX" width="500" height="700">
    <param name="Filename" value="/1234-56789-abc-123-3.pdf">
    <param name="SRC" value="/1234-56789-abc-123-3.pdf">
    You must install Foxit Reader to view this document.
</object>

Additionally if anyone has experience of enterprise deployment, silent installation, registry setting etc. These would also be welcomed.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花辞树 2024-07-21 22:08:06

福昕阅读器本身不包含任何嵌入式组件; 为此,他们有 Foxit Reader ActiveX,这是一个单独分发的付费组件读者。 例如,标准 ActiveX 版本可以通过以下方式嵌入到网页中:(

<script type="text/javascript"">
function openFile() {
    document.getElementById("foxitReader").OpenFile("foo.pdf", "");
}
</script>

<body onload="openFile()">
    <object id="foxitReader"
        classid="clsid:DB2189DF-ABF4-445A-A4E5-BF32F2CEA4D9"
        width="800" height="600">
    <p>You must install Foxit Reader ActiveX to view this PDF file.</p>
    </object>
</body>

我不是 Web 开发人员,因此这段代码可能远非完美,但它应该可以帮助您了解想法。)

如果使用 Foxit Reader ActiveX 不适合您,请查看此问题 其中讨论了显示 PDF 内容的其他可能方式。

Foxit Reader itself doesn't include any embeddable components; they have Foxit Reader ActiveX for this purpose, which is a paid component distributed separately from the Reader. For example, the Standard ActiveX version can be embedded into a web page in the following way:

<script type="text/javascript"">
function openFile() {
    document.getElementById("foxitReader").OpenFile("foo.pdf", "");
}
</script>

<body onload="openFile()">
    <object id="foxitReader"
        classid="clsid:DB2189DF-ABF4-445A-A4E5-BF32F2CEA4D9"
        width="800" height="600">
    <p>You must install Foxit Reader ActiveX to view this PDF file.</p>
    </object>
</body>

(I'm not a web developer, so this code may be far from perfect, but it should help you get the idea.)

If using Foxit Reader ActiveX is not an option for you, take a look at this question which discusses other possible ways of displaying PDF content.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文