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: 9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic    FMM    Blog  


Queries all color spaces as JSON array.

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


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


Returns JSON or error.


Queries all color spaces as JSON array.
See TExtColorSpace structure in DynaPDF manual, 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.


Query JSON:

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

See also

Blog Entries

Release notes

  • Version 10.5
    • Added DynaPDF.GetAnnotationsAsJSON, DynaPDF.GetBookmarksAsJSON, DynaPDF.GetColorSpacesAsJSON, DynaPDF.GetDocInfoAsJSON, DynaPDF.GetEmbeddedFilesAsJSON, DynaPDF.GetFieldsAsJSON, DynaPDF.GetFontsAsJSON, DynaPDF.GetImportDocInfoAsJSON and DynaPDF.SysFontInfoAsJSON functions.

Created 16th September 2020, last changed 16th September 2020

DynaPDF.GetColorSpaceInfo   -   DynaPDF.GetCompressionFilter

Feedback: Report problem or ask question.

MBS Xojo Plugins