Win32和Acrobat [英] Win32 and Acrobat

查看:109
本文介绍了Win32和Acrobat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用C语言编写的简单Win32应用程序,我想在其中打开PDF.我知道我可以编译并链接到Poppler库,但是有没有办法使用Acrobat Reader?就像浏览器一样,如果您安装了Reader,它们可以通过某些插件界面自动在窗口中显示PDF.问题是,我从未使用过插件,没有编写过这样的接口.如何?以后是否还可以安装Reader并以某种方式使应用知道其存在?

I have a simple Win32 app writen in C, in which I would like to open PDFs. I know I can compile and link to Poppler library, but is there a way to use Acrobat Reader? Kind of like what browsers do, if you have Reader installed, they are automatically able to display PDF in a window though some plugin interface. The problem is, I never used a plugin, not wrote such an interface. How to? Is it also possible to install Reader afterward and somehow make the app aware of its presence?

我也想控制缩放. PDF也可以存储在内存中.

I would also like to control, say, the zoom. And what the PDF could be in memory, as well.

我刚刚发现了这个[1]: 如果已安装Adobe Reader,则可以在VisualStudio中向PDf查看器ActiveX控件添加COM引用,并在WindowsFormsHost控件内使用它." 但是我不明白它在说什么:如何在普通Win32 C中创建"COM引用"并使用"WindowsFormsHost"?

I just found this [1]: "If you have installed Adobe Reader, you can add a COM reference to the PDf viewer ActiveX control in VisualStudio and use it inside a WindowsFormsHost control." but I don't understand what does it says: how do I create "COM reference" and use "WindowsFormsHost" in plain Win32 C?

[1] 用于在以下位置显示PDF文档的PDF库WPF

推荐答案

除了Nifle所说的以外,如果不是将其作为单独的应用程序运行,还希望将Acrobat Reader作为应用程序窗口中的插件运行(例如, IE在IE的窗口中运行), Adob​​e Acrobat读者下载页面说,

In addition to what Nifle said, if instead of running it as a separate application you want to run Acrobat Reader as a plugin within your application's window (as for example IE runs it within IE's window), Adobe Acrobat Reader download page says,

包含Internet Explorer的ActiveX控件和Netscape Navigator的插件,它们会自动安装在您选择的浏览器中.

An ActiveX control for Internet Explorer and a plug-in for Netscape Navigator are included and automatically installed in the browser of your choice.

该插件技术可能是称为 ActiveX 的技术.

The plug-in technology is probably the technology called ActiveX.

这篇关于Win32和Acrobat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆