



pdf activex 完全控制,你不再需要pdf xtra了
1 检察是否安装了 pdf activex 控件 ,需要 activex xtra 支持
使用activx xtra 的函数 ActiveXControlQuery,查询条目 "{CA8A9780-280D-11CF-A24D-444553540000}" 。
ActiveXControlQuery("{CA8A9780-280D-11CF-A24D-444553540000}")
假如 返回 -1 说明安装了 pdf activex 控件 。否则没有安装pdf activex 控件,则需要 运行 acrobat reader 安装程序安装了 pdf activex 控件。
有些 activex 控件 也可以直接使用 ActiveXControlRegister("c:\a.ocx") 注册,使用 ActiveXControlUnregister("c:\a.ocx") 注销。
2 引用安装好的 pdf activex 控件
在菜单 insert -> control -> activex , 选择 acrobat control for activex , 然后把它放到 score 上面,假设放到了3通道。
3 利用刚才加入的 pdf activex 控件sprite,显示 pdf 文件
sprite(3).src=the moviepath & "pdfs\" & pdfName
或者
sprite(3).loadfile("pdfs\" & pdfName)
4 关闭菜单条和滚动条
sprite(3).setShowToolbar(0)
sprite(3).setShowScrollbars(0)
5 设置显示的模式
sprite(3).setPageMode("pages only")
sprite(3).setPageMode("thumbnail and pages")
sprite(3).setPageMode("bookmark and pages")
6 设置显示时候的页面百分比
sprite(3).setzoom(150)
7 其他功能可以参考 methods 提示的函数自己再增加。
----------------------------------------------------------------
仅授权 blueidea.com 。 其他站点及刊物不得转载 !