Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  


Queries one color space as JSON object.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetColorSpaceAsJSON"; PDF; Index )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Index The index of the colorspace.
From 0 to DynaPDF.GetColorSpaceCount-1.


Returns JSON or error.


Queries one color space as JSON object.
See TExtColorSpace structure in DynaPDF help, which we convert to JSON for you.

Keys include Type, Alternate, AlternateColorSpace, BufSize, BlackPoint, WhitePoint, NumComponents, NumInComponents, NumOutComponents, Gamma, Range, Matrix, NumColors, ColorantsCount, Colorants, MetadataSize, Metadata, Attributes and Index.

See also GetColorSpaceAsJSON function in DynaPDF manual.

See also

Release notes

Blog Entries

Created 19th September 2020, last changed 2nd September 2022

DynaPDF.GetColorSpace - DynaPDF.GetColorSpaceCount

Feedback: Report problem or ask question.

Start Chat