[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.
[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))]
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 | |
---|---|---|---|
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft