Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

DynaPDF.SetExtColorSpace

Activates an extended color space in the graphics state.

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

Parameters

Parameter Description Example value
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

Example Databases

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


DynaPDF.SetDrawDirection   -   DynaPDF.SetExtFillColorSpace

Feedback: Report problem or ask question.




Links
MBS FileMaker blog