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

DynaPDF.GetColorSpacesAsJSON

Queries all color spaces as JSON array.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetColorSpacesAsJSON"; PDF { ; Flags } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Flags Pass 8 to include buffer with color space file data as Buffer entry (base64 encoded). 0 Optional

Result

Returns JSON or error.

Description

Queries all color spaces as JSON array.
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 GetColorSpacesAsJSON function in DynaPDF manual.

Examples

Query JSON:

Set Variable [ $JSON; Value: MBS( "DynaPDF.GetColorSpacesAsJSON"; PDF ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

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


DynaPDF.GetColorSpaceInfo - DynaPDF.GetCompressionFilter