FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
Unit Class Reference

Unit object. More...

Inherited by PixelUnit.

Public Member Functions

 convertAreaTo (value, targetUnit)
 Conversion per unit area. More...
 
 convertTo (value, targetUnit)
 Unit conversion. More...
 

Detailed Description

Unit object.

Since
8.0.0

Member Function Documentation

◆ convertAreaTo()

Unit::convertAreaTo (   value,
  targetUnit 
)
inline

Conversion per unit area.

Parameters
valuenumber -
targetUnitUnit - target Unit Object
function example(){
var getUnitByName = UIExtension.PDFViewCtrl.shared.getUnitByName;
var value = getUnitByName('inch').convertAreaTo(1,getUnitByName('mm'))
}
Since
8.0.0
Returns
number -

◆ convertTo()

Unit::convertTo (   value,
  targetUnit 
)
inline

Unit conversion.

Parameters
valuenumber -
targetUnitUnit - target Unit Object
function example(){
var getUnitByName = UIExtension.PDFViewCtrl.shared.getUnitByName;
var value = getUnitByName('inch').convertTo(1,getUnitByName('mm'))
}
Since
8.0.0
Returns
number -

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