DynaPDF.GetDocUsesTransparency
------------------------------

Checks whether this document uses transparency.

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

MBS( "DynaPDF.GetDocUsesTransparency"; PDF { ; Flags } ) 

**MBS**( **"DynaPDF.GetDocUsesTransparency";** /\* Checks whether this document uses transparency. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Flags**) /\* Optional; Flags for check. \*/ 

### Parameters

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

### Result

Returns 1, 0 or error.

### Description

Checks whether this document uses transparency.  
Checks whether a PDF file uses native PDF Transparency (PDF 1.4). The file uses transparency when it contains soft masks, blend modes other than Normal, or fill or stroke alpha values smaller than 1.0.  
The function checks all pages, templates, extended graphics states, images, annotations, and form fields.  
If the file uses transparency the return value is 1. If it uses no transparency the return value is 0.  
See also [GetDocUsesTransparency](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetDocUsesTransparency.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetUsesTransparency](DynaPDFGetUsesTransparency.md)
- [DynaPDF.GetUseTransparency](DynaPDFGetUseTransparency.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetUseTransparency](DynaPDFSetUseTransparency.md)

This function checks for a license.

Created 8th May 2018 , last changed 8th May 2018

  
[DynaPDF.GetDocInfoCount](DynaPDFGetDocInfoCount.md) - [DynaPDF.GetDrawDirection](DynaPDFGetDrawDirection.md)

[HTML Version](DynaPDFGetDocUsesTransparency.shtml)