DynaPDF.GetColorSpaceInfo
-------------------------

Queries details on a colorspace.

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

MBS( "DynaPDF.GetColorSpaceInfo"; PDF; Index; Selector ) 

**MBS**( **"DynaPDF.GetColorSpaceInfo";** /\* Queries details on a colorspace. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Index**; /\* The index of the colorspace.  
From 0 to [DynaPDF.GetColorSpaceCount](DynaPDFGetColorSpaceCount.md)-1.e.g. 0 \*/   
**$Selector**) /\* Which value to return.e.g. "Type" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Index | The index of the colorspace.   From 0 to [DynaPDF.GetColorSpaceCount](DynaPDFGetColorSpaceCount.md)-1. | 0 |
| Selector | Which value to return. | "Type" |

### Result

Returns value or error.

### Description

Queries details on a colorspace.  
You can query Type, Alternate, Size (byte size of ICC Profile), Buffer (ICC Profile), NumInComponents, NumOutComponents, NumColors, ColorantsCount, Colorants (names of colorants as list), MetadataSize, Metadata (XMP metadata as text).  
See also [GetColorSpaceInfo](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetColorSpaceObj.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetColorSpace](DynaPDFGetColorSpace.md)
- [DynaPDF.GetColorSpaceAsJSON](DynaPDFGetColorSpaceAsJSON.md)
- [DynaPDF.GetColorSpaceCount](DynaPDFGetColorSpaceCount.md)
- [DynaPDF.GetColorSpacesAsJSON](DynaPDFGetColorSpacesAsJSON.md)
- [DynaPDF.GetImportDocInfo](DynaPDFGetImportDocInfo.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetColorSpace](DynaPDFSetColorSpace.md)

### Example Databases

- [DynaPDF/Change Separation Colorant](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Change%20Separation%20Colorant.shtml#2ScriptAnchor_)
- [DynaPDF/List ColorSpaces](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/List%20ColorSpaces.shtml#4ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 6.4pr1](https://www.mbsplugins.de/archive/2016-07-20/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th July 2016 , last changed 19th July 2016

  
[DynaPDF.GetColorSpaceCount](DynaPDFGetColorSpaceCount.md) - [DynaPDF.GetColorSpacesAsJSON](DynaPDFGetColorSpacesAsJSON.md)

[HTML Version](DynaPDFGetColorSpaceInfo.shtml)