Tag Link | [PDF_Color] | Category | |
---|---|---|---|
Type | Substitution | Source Available | Yes |
Support | Preferred | Version | 8.5.5 |
Change | New | Data Source | Any |
Output Type | PDF_Color | Security | None |
Implementation | LJAPI | Sets | Lasso 8.5 |
[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
[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.
[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 |
This tag was added in Lasso 8.5.5.
See the Lasso 8 Language Guide for examples of how to use this tag.