Class: ShapedText

PDFNet. ShapedText


new ShapedText()

[Missing documentation]

Extends

Members


<static> FailureReason

Properties:
Name Type Description
e_NoFailure number
e_UnsupportedFontType number
e_NotIndexEncoded number
e_FontDataNotFound number

<static> ShapingStatus

Properties:
Name Type Description
e_FullShaping number
e_PartialShaping number
e_NoShaping number

Methods


destroy()

Destructor
Inherited From:
Returns:
Type
Promise.<void>

getFailureReason()

Returns:
A promise that resolves to an object of type: "number"
PDFNet.ShapedText.FailureReason = {
	e_NoFailure : 0
	e_UnsupportedFontType : 1
	e_NotIndexEncoded : 2
	e_FontDataNotFound : 3
}
Type
Promise.<number>

getGlyph(index)

Parameters:
Name Type Description
index number
Returns:
A promise that resolves to an object of type: "number"
Type
Promise.<number>

getGlyphXPos(index)

Parameters:
Name Type Description
index number
Returns:
A promise that resolves to an object of type: "number"
Type
Promise.<number>

getGlyphYPos(index)

Parameters:
Name Type Description
index number
Returns:
A promise that resolves to an object of type: "number"
Type
Promise.<number>

getNumGlyphs()

Returns:
A promise that resolves to an object of type: "number"
Type
Promise.<number>

getScale()

Returns:
A promise that resolves to an object of type: "number"
Type
Promise.<number>

getShapingStatus()

Returns:
A promise that resolves to an object of type: "number"
PDFNet.ShapedText.ShapingStatus = {
	e_FullShaping : 0
	e_PartialShaping : 1
	e_NoShaping : 2
}
Type
Promise.<number>

getText()

Returns:
A promise that resolves to an object of type: "string"
Type
Promise.<string>

takeOwnership()

Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
Inherited From:
Returns:
Type
void