DynaPDF.GetOpacity
------------------

Returns the opacity value used to draw the visible appearance of an annotation (requires Acrobat 5 or higher).

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetOpacity"; PDF ) 

**MBS**( **"DynaPDF.GetOpacity";** /\* Returns the opacity value used to draw the visible appearance of an annotation (requires Acrobat 5 or higher). \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns value or error.

### Description

Returns the opacity value used to draw the visible appearance of an annotation (requires Acrobat 5 or higher).   
A value of 1 determines that the annotation is completely opaque. If the value is zero, newly created annotations will be invisible. The opacity flag is not supported by all annotation types.  
At time of publication the opacity property is used for annotations only. Later versions of DynaPDF use this property may be for other PDF objects too.  
See also [GetOpacity](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetOpacity.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetLeading](DynaPDFGetLeading.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetOpacity](DynaPDFSetOpacity.md)

This function checks for a license.

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

  
[DynaPDF.GetOCGUsageUserName](DynaPDFGetOCGUsageUserName.md) - [DynaPDF.GetOrientation](DynaPDFGetOrientation.md)

[HTML Version](DynaPDFGetOpacity.shtml)