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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

DynaPDF.SetExtColorSpace

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

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

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

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


DynaPDF.SetDrawDirection - DynaPDF.SetExtFillColorSpace

Feedback: Report problem or ask question.