Foxit Software



Welcome to Foxitsoftware

Foxit Reader SDK (ActiveX)

More Foxit PDF SDK

More PDF Tools

Foxit SDK ActiveX 2.0

Upgrade Foxit ActiveX from version 1.0 to 2.0

Foxit ActiveX 2.0 includes many improvements and new features over version 1.0. If your application already use Foxit ActiveX 1.0, this document teaches you how to modify your program to Foxit ActiveX 2.0.

Properties:

1. You can get properties like Title and Author directly with ActiveX 1.0, while in version 2.0, the property DocumentInfo should be accessed before getting the info of Title, Author and other details.

Rotate and Zoomlevel are both read-only in ActiveX 1.0, while in ActiveX 2.0, they are both readable and writable.

  • SetRotateMode (ActiveX 1.0)
  • SetRotate (ActiveX 2.0)

Note: They do perform the same functions.

2. Other attributes in ActiveX 2.0 are all compatible with their counterparts in ActiveX 1.0.

Methods:

With Foxit ActiveX, you can set the printing settings, open the print dialog box and then print files when they're opened. In Version 1.0, these methods are the member methods of the ActiveX, while in Version 2.0, these methods are the member methods of the class CPDFPrinter. The following is a chart comparing version 1.0 and 2.0:

ActiveX 1.0ActiveX 2.0
PrintFile()PrintWithDialog()
SetPrintnum()SetNumOfCopies()
GetPrintnum()GetNumOfCopies()
PrintSilent()call methods of CPDFPrinter and change its properties in order to print silently
PrintSilentByName()call CPDFPrinter or do some properties settings
GotoPage()call SetZoomlevel(), then SetRotate(), and then GotoPage()
ShowProperties()ShowDocumentInfoDialog()
FindNext()call FindFirst() and then FindNext()

Note: Other methods in version 2.0 are compatible with their counterparts in version1.0

Events:

Here's a chart comparing events in version 1.0 and 2.0:

ActiveX 1.0ActiveX 2.0
LinkClickedOnHypeLink
DocLoad and DocUnLoadOnOpenDocument and OnDocumentChange
BeforeDraw and AfterDrawBeforeDraw and AfterDraw