Lasso Soft Inc. > Home

[PDF_Color]

[PDF_Color] is a new type which can be used to set RGB, CMYK, grayscale, or spot colors in any of the PDF tags which accept a -Color parameter. A color can be specified in the [PDF_Doc->SetColor] tag as [$PDF_Doc->(SetColor: 'stroke' $PDF_Color)].

[PDF_Color: 'rgb', red, green, blue] creates an RGB color. The color values should be specified as decimals between 0.0 and 1.0.

[PDF_Color: 'cmyk', cyan, magenta, yellow, black] creates a CMYK color. The color values should be specified as decimals between 0.0 and 1.0.

[PDF_Color: 'gray', intensity] creates a shade of gray. The intensity should be specified as a decimal between 0.0 and 1.0. The type can be spelled as either 'gray' or 'grey'.

[PDF_Color: 'spot', name, tint, pdf_color] creates a spot color. The name is a string identifying the Pantone name of the color or other name which your printer will recognize. The tint should be specified as a decimal between 0.0 and 1.0. The final parameter allows you to specify an rgb, cmyk, or gray [PDF_Color] which approximates the color.

  • Syntax
  • Parameters
[PDF_Color('rgb', 0.0, 0.5, 1.0)]

[PDF_Color('cmyk', 0.0, 0.5, 1.0, 0.5)]

[PDF_Color('gray', 0.5)]

[PDF_Color('spot', 'black', 1.0 PDF_Color('gray', 0.0))]

Required Parameters
Type The type of the color: RGB, CMYK, gray (or grey), or spot.
Optional Parameters
R, G, B Required for RGB type colors. Three decimal values between 0.0 and 1.0 specifying the red, green, and blue values for the color.
C, M, Y, K Required for CMYK type colors. FOUR decimal values between 0.0 and 1.0 specifying the cyan, magenta, yellow, and black values for the color.
G Required for gray. One decimal value between 0.0 and 1.0 specifying the tint of gray to use.
Name, Tint, Color Required for spot colors. The first parameter should be the name of the spot color, such as the Pantone name for the color. The tint for the spot color should be specified as a decimal value between 0.0 and 1.0. Finally, a [PDF_Color] object specifies the color which should be used for on-screen display.
Examples

See the PDF chapter in the Lasso 8 Language Guide for examples of how to use this tag. Many of the PDF examples require lengthy descriptions and the use of several related tags and are better suited to presentation in the Language Guide.

Tag Link [PDF_Color] Category PDF
Type Substitution Data Source Any
Support Preferred Version 8.5.5
Output Type PDF_Color Security None
Implementation LJAPI Sets Lasso 8.5

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft