Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.SetOpacity

Sets the opacity value which is used to render the appearance of a text annotation.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetOpacity"; PDF; Value )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Value The new value. 1.0 = opaque, 0.0 = invisible. 0.5

Result

Returns OK or error.

Description

Sets the opacity value which is used to render the appearance of a text annotation.
The parameter Value must be in the range 0.0 to 1.0. If Value is zero the annotation is invisible, if Value is 1.0, the annotation is completely opaque.
At time of publication the opacity property is used for text annotations only. Later versions of DynaPDF use this property may be for other PDF objects too.
Default value = 1.0

See also SetOpacity function in DynaPDF manual.

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


DynaPDF.SetOCGState - DynaPDF.SetOrientation