FoxitPDFSDKforWeb  v9.1.0
Foxit PDF SDK for Web

It's a module that contains some utility classes which encapsulates common operations such as Unit object processor. More...

Classes

class  Color
 Class for processing color-related algorithms such as conversions. More...
 

Functions

function getRanges (intervals)
 Get the number range. More...
 
function getUnitByName (unitName)
 Get the unit object by the unit name. More...
 

Detailed Description

It's a module that contains some utility classes which encapsulates common operations such as Unit object processor.

Function Documentation

◆ getRanges()

function getRanges (   intervals)

Get the number range.

Parameters
intervalsArray<[number,number]|number> -
function example(){
var getRanges = PDFViewCtrl.shared.getRanges;
getRanges([0,2],4,5) // [0, 1, 2, 4, 5]
}
Returns
number[] -
Since
8.2.0

◆ getUnitByName()

function getUnitByName (   unitName)

Get the unit object by the unit name.

Since
8.0.0
function example(){
var getUnitByName = PDFViewCtrl.shared.getUnitByName;
var unit = getUnitByName('inch')
}
Parameters
unitNamestring
Returns
Unit -

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