65.9K
CodeProject 正在变化。 阅读更多。
Home

一个简单的包装器,用于从您的应用程序控制 Acrobat Reader

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.96/5 (11投票s)

2004年11月9日

viewsIcon

189542

downloadIcon

2379

此类封装了一些有用的 DDE 消息,用于从您的应用程序控制 Acrobat。

引言

Acrobat Reader 无法使用自动化技术进行驱动。Adobe 仅定义了几个受限制的 DDE 消息,用于从外部控制 Reader。

这个类映射了一些有用的 DDE 消息,这些消息将允许您在 acrobat 中打开、查找、打印和关闭文件。

背景

DDE 消息描述可以从 Adobe 网站下载 (IACReference.pdf)

使用代码

使用这个类很简单

//Sure, you need at least to include that file !
#include "ReaderWrapper.h"

    // This will instanciate a new object
    CReaderWrapper ReaderDemo("d:\\test.pdf");
    
    // Open your document inside acrobat
    ReaderDemo.DocOpen();

    //Seek display to page 4
    ReaderDemo.GoToPage(4);

    //Print the file without displaying any modal dialog box
    ReaderDemo.FilePrintSilent();

    //Close the document
    ReaderDemo.DocClose();

    //Exit reader
    ReaderDemo.ExitAcrobat();
//

历史

  • 1.1 (2004/11/09) 首次发布。
© . All rights reserved.