Welcome to Foxitsoftware

Foxit PDF SDK (ActiveX)

More Foxit PDF SDK

More PDF Tools

Foxit PDF SDK ActiveX

Upgrade Foxit PDF SDK ActiveX from version 2.4 to 3.0

Compared to version 2.4, Foxit PDF SDK ActiveX 3.0 is enhanced with many more properties, interfaces, methods and events.

  1. Powerful Form Interface:
    The form interface supports programmatic access to most of the properties and actions that can be performed in Foxit Reader.
  2. Sound and Movie Tools:
    With these newly-added tools, you can add audio or video into your application easily.
  3. Enhanced Print Interface:
    In addition to the printing features in previous versions, the Print interface is enhanced with more new properties, which can be set in the print dialog box.
  4. Different GUID between the Standard and Professional Version
    The Standard and Professional Version have different GUID. Users can use these two versions on the same computer at the same time, and access each version with THEIR own GUID.
  5. New Function to Unlock ActiveX Introduced
    The version 3.0 not only retains the way to unlock ActiveX in the previous versions, but also introduces a new function "UnLockActiveXEx" to unlock ActiveX. Please note this new function is recommended to be used.
  6. More Interactive Events:
    • OnFilePathInvalidate
    • OnShowSavePrompt
    • OnContextMenuItemIndex
    • OnRButtonClick
    • OnDownLoadFinish
    • FormFieldError
  7. Newly-added Methods Include:
    • OpenFtpFile
    • UploadCurFileToFTP
    • ShowNavigationPanels
    • EnableToolTip
    • GetLayoutShowMode
    • GetCurrentForm
    • CountHyperLinks
    • HighlightHyperLink
    • GetHyperLinkRect
    • GetHyperLinkInfo
    • EnableHyperLink
    • SetUserPassword
    • SetUserPermission
    • SetOwnerPassword
    • SetContextMenuString
    • SetPDFMeasureUnit
    • GetCurrentWnd
    • GetCtrlInstance
    • UnLockActiveXEx
  8. Deleted and Renamed Methods Include:
    • ConvertClientCoodToPageCood()
    • ShowCoverPage()
    • GotoPageView()
    • Scroll()
    • GoToPage2()
    • GotoPageView2()

For more information, please refer to "Foxit PDF SDK ActiveX 3.0 guide.pdf".

Upgrade Foxit ActiveX from version 2.3 to 2.4

  1. Newly-added methods include:
    GetScrollLocation
    SetCurrentWnd
    SetLogFile
  2. Revisions to the original events and methods:
    • Add new methods to replace the non-standard ones. All previous interfaces specified in previous versions have been kept. Please note that the methods in 2.3 listed below will be removed in the future.
    • GotoPage () has been replaced with GoToPage ().
      For more information, please refer to "Foxit ActiveX 2.4 guide.pdf".
ActiveX 2.3 ActiveX 2.4
ConvertClientCoodToPageCood() ConvertClientCoordToPageCoord()
ShowCoverPage() SetFacingCoverLeft()
GotoPageView() GoToSearchResult()
Scroll() ScrollView()
GoToPage2() GoToPagePos()
GotoPageView2() GoToPageDest()

Upgrade Foxit ActiveX from version 2.0 to 2.3

  1. Highlight,SearchAndHighlightAllTextOnPage and RemoveAllHighlight are available in Foxit ActiveX 2.3 Professional version only.
  2. In VB.NET, the name of the module is changed from "SDK_AX ActiveX Control module" to "FoxitReaderSDK module".
  3. The newly-added interfaces include:
    ExportPagesToPDF,
    GetBitmap,
    GetPageHeight,
    GetPageWidth,
    GoToNextPage,
    GoToPrevPage,
    ShowCoverPage,
    SetCurrentLanguageByString,
    EnableHypeLink

For more info, please refer to "Foxit ActiveX 2.3 guide.pdf".

 

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.0 ActiveX 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.0 ActiveX 2.0
LinkClicked OnHypeLink
DocLoad and DocUnLoad OnOpenDocument and OnDocumentChange
BeforeDraw and AfterDraw BeforeDraw and AfterDraw