FoxitPDFSDKforWeb v12.0.0
Foxit PDF SDK for Web
ComparisonAddon Class Reference

Comparison addon. Provides PDF comparison UI and public APIs for comparison-result filter options and comparison-options dialog parameters. More...

Inheritance diagram for ComparisonAddon:
UIXAddon

Public Member Functions

 getCompareDocumentParamsService ()
 Retrieves the CompareDocumentParamsService for comparison-options dialog configuration. More...
 
 getCompareFilterOptionsService ()
 Retrieves the CompareFilterOptionsService for comparison-result filter options. More...
 
- Public Member Functions inherited from UIXAddon
 afterMounted (root)
 Lifecycle method: this method is called after the UI component element mout into DOM tree. More...
 
 beforeMounted (root)
 Lifecycle method: this hook is called before the UI component element mount into DOM tree. More...
 
 destroy ()
 Lifecycle method: to override this method to implement the destroying logics. This method is called when a PDFUI instance is destroyed or the addon is dettached from PDFUI. More...
 
 fragments ()
 UI fragment configurations of this addon. More...
 
 getI18NResources ()
 Get I18n resources. More details about I18Next, please visit: https://www.i18next.com/. More...
 
static getName ()
 Returns the name of an addon. More...
 
 init (pdfui)
 Called when initializing this addon instance. More...
 
 pdfViewerCreated (pdfviewer)
 Lifecycle method: this method is called when PDFViewer instance has been created and is before the afterMounted method . More...
 

Additional Inherited Members

- Protected Member Functions inherited from UIXAddon
 receiveAction (actionName, args=[])
 When the user calls PDFUI.callAddon, the receiveAction method on the corresponding Addon will be triggered. Addon exposes the API through this method and different action values. In the custom Addon subclass, you should implement this method to implement exposed APIs. More...
 
- Static Protected Member Functions inherited from UIXAddon
static initOnLoad ()
 Called after loading this addon, and only called once, The UI modules, components and controllers should be initialized and registered in this function.
 

Detailed Description

Comparison addon. Provides PDF comparison UI and public APIs for comparison-result filter options and comparison-options dialog parameters.

Since
8.5.0
const addon = await pdfui.getAddonInstance('Comparison');
const service = addon.getCompareFilterOptionsService();

Member Function Documentation

◆ getCompareDocumentParamsService()

ComparisonAddon::getCompareDocumentParamsService ( )
inline

Retrieves the CompareDocumentParamsService for comparison-options dialog configuration.

Returns
CompareDocumentParamsService
Since
12.0.0
See also
CompareDocumentParamsService
Option
CompareDocumentParams
CompareDocumentParamsPatch

◆ getCompareFilterOptionsService()

ComparisonAddon::getCompareFilterOptionsService ( )
inline

Retrieves the CompareFilterOptionsService for comparison-result filter options.

Returns
CompareFilterOptionsService
Since
12.0.0
See also
CompareFilterOptionsService
CompareFilterOptions

Foxit Software Corporation Logo
@2026 Foxit Software Incorporated. All rights reserved.