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


Activates an extended color space in the graphics state.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetExtColorSpace"; PDF; Handle )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Handle Handle of an extended color space.


Returns OK or error.


Activates an extended color space in the graphics state.
An extended color spaces are non-device color spaces, such as ICCBased, Lab, Separation, DeviceN, and so on. The current fill and stroke color are initialised to black after the color space has been changed. Device color spaces can be set with DynaPDF.SetColorSpace. The fill and stroke color spaces can also be set separately with DynaPDF.SetExtFillColorSpace and DynaPDF.SetExtStrokeColorSpace.

Requires DynaPDF Pro license.

See also SetExtColorSpace function in DynaPDF manual.


Draw line in a separation color:

# draw line in Cut Color
Set Variable [ $cs ; Value: MBS("DynaPDF.CreateSeparationCS"; $pdf; "Through Cut"; "DeviceCMYK"; -1; MBS("DynaPDF.CMYK"; 0; 255; 0; 0)) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetExtColorSpace"; $pdf; $cs) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 1) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.Rectangle"; $pdf; $x; $y; $w; $h; "Stroke" ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 27th August 2017, last changed 11st November 2018

DynaPDF.SetDrawDirection - DynaPDF.SetExtFillColorSpace