FoxitPDFSDKforWeb  8.3.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...

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
{Array<[number,number]|number>}intervals
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
{string}unitName
Returns
{Unit}

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