Color Palette

Colors are specified in mappings as RGB (Red, Green, Blue) values. These are used to create device-dependent RGB colors when creating a PDF.

You can create a color palette for a stylesheet. This allows you to see all of the colors used in the stylesheet and assign properties to each one. For example, this allows you to specify CMYK (Cyan, Magenta, Yellow, Black) values to be used if the PDF profile selected uses the cmyk color space.

To create a color palette select Color Palette... from the Format menu. An initial palette will be created from the colors used in the current mappings.

[Note] Note

The initial palette will not include colors used in commands in the custom content of a mapping.

The palette editor dialog will be opened:

To add a new color to the palette, press Add... and enter a color. This is the preview color for the palette color, and will be used in the page preview and print output. A default name will be assigned to the color. You can change the name and the other color properties by selecting it and pressing Edit..., or by double-clicking it.

The color properties are:

Name

Any name may be used for the color, as long as it is different from all of the other color names. Names should only use letters (A-Z, a-z) and digits (0-9).

RGB

The RGB value is used for PDF colors when the profile selects the rgb color space. It defaults to the same value as the preview color.

Each of the red, green and blue values must be in the range 0 to 255 inclusive (00 to FF hexadecimal). You can enter 3 decimal values separated by spaces or commas, or a hexadecimal value in the form “#RRGGBB”. For example, “0 128 255” and “#0080FF” are equivalent.

CMYK

The CMYK value is used for PDF colors when the profile selects the cmyk color space.

Each of the cyan, magenta, yellow and black values must be in the range 0 to 100 inclusive. Enter them as decimal values separated by spaces or commas.

The color displayed is only an approximation of the actual CMYK value that will be used in the PDF.

Grayscale

The grayscale value is used for PDF colors when the profile selects the grayscale color space.

The value must be entered as a decimal number in the range 0 (black) to 100 (white) inclusive.

Spot

This is used when the profile selects the separation color space.

The value must be a name, optionally followed by a tint value, optionally followed by an alternate color specification. Use a comma to separate these. The tint must be in the range 0 to 100 and defaults to 100. The alternate color must be a hexadecimal RGB specification in the form “#RRGGBB”. The name should only use letters (A-Z, a-z) and digits (0-9). For example:

Meadow Green,80,#008040

The alternate color should correspond to the appearance with a tint value of 100 (so all spot colors with the same name should have the same alternate color).

To delete a palette color, select it and press Delete. A color may only be deleted if it is not used in any mappings.

Using the color palette

When a color palette exists for the stylesheet, pressing a Set Color... button will open the palette editor dialog. Select one of the colors and press OK to set the color. You can also add new colors or edit existing ones.

When using colors in command directives declared within a mapping customisation, use an RGB value that corresponds to a preview color in one of the palette colors.

Removing a color palette

You can remove the color palette from the stylesheet by pressing the Remove Palette button. This is only visible when you open the dialog from the Format menu, not when you are selecting a color in a mapping.

If you remove the palette the names and properties of the palette colors will be lost.