Foxit Software



Welcome to Foxitsoftware

Foxit Reader SDK (ActiveX)

Foxit Reader SDK (DLL)

其他PDF工具

Foxit SDK ActiveX

将Foxit ActiveX 从2.0版升级到2.3版

  • 以下函数:Highlight,SearchAndHighlightAllTextOnPage和RemoveAllHighlight,根据其接口性质,将不在Foxit ActiveX 2.3版本中提供,仅专业版提供。
  • VB.NET下的模块名由“SDK_AX ActiveX Control module”更改为“FoxitReaderSDK module”。
  • 新增如下接口函数:
    ExportPagesToPDF,
    GetBitmap,
    GetPageHeight,
    GetPageWidth,
    GoToNextPage,
    GoToPrevPage,
    ShowCoverPage,
    SetCurrentLanguageByString,
    EnableHypeLink
  • 欲了解更多信息,请参照用户手册

将Foxit ActiveX 从1.0版升级到2.0版

Foxit ActiveX 2.0除了包含了1.0版的全部功能之外,还增加了许多新特性。如果您的应用程序已经使用了Foxit ActiveX 1.0,那么这个文档将帮助您修改您的程序使之适用于Foxit ActiveX 2.0。

属性:

1、在ActiveX 1.0当中,您可以直接获取像Title, Author这些属性的值,然而在2.0当中,您需要先获取到IPDFDocumnetInfo这个接口,并根据这个接口所提供的方法来获取这些信息。

2、Rotate和Zoomlevel在ActiveX 1.0当中都是只读的,而在2.0当中是可读写的。

3、其它的属性在ActiveX 2.0中都和1.0保持兼容。

方法:

使用Foxit ActiveX,您可以在文档打开的时候,调出打印对话框进行打印设置并打印。在1.0版当中,您可以直接调用成员函数来实现这一功能,但在2.0当中需要先获取IPDFPrinter这个接口,再调用这个接口中的方法来实现同样的功能。

以下为1.0版与2.0版的方法对应图表。

ActiveX 1.0ActiveX 2.0
PrintFile()PrintWithDialog()   (IPDFPrinter接口方法)
SetPrintnum()SetNumOfCopies()   (IPDFPrinter接口方法)
GetPrintnum()GetNumOfCopies()   (IPDFPrinter接口方法)
PrintSilent()PrintQuiet()   (IPDFPrinter接口方法)
PrintSilentByName()先调用SetPrinterName() ,再调用 PrintQuiet()   (IPDFPrinter接口方法)
SetRotateMode()SetRotate()
GotoPage()调用SetZoomlevel(),SetRotate(),最后调用GotoPage()
ShowProperties()ShowDocumentInfoDialog()
FindNext()由FindFirst 和 FindNext 共同完成。

注意:其它的方法在ActiveX 2.0当中与1.0保持兼容。

事件:

如下是一个1.0与2.0的事件对应图表。

ActiveX 1.0ActiveX 2.0
LinkClickedOnHypeLink
DocLoadOnOpenDocument
DocUnLoadOnCloseDocument
BeforeDrawBeforeDraw
AfterDrawAfterDraw