If you need help with any of the techniques described below, feel free to contact our support team.
Does CoolSpools handle color?
Yes, there are several ways in which you can get color into your PDFs.
If your spooled file is of type *AFPDS and has color defined (e.g. using the DDS COLOR keyword) on text items, line and box graphics etc., the color will be reproduced when the spooled file is converted to PDF.
Colored text is also supported when outputting to RTF and HTML formats.
When converting to PDF, HTML or RTF formats, you can use the COLOR parameter of the CVTSPLPDF, CVTSPLHTML or CVTSPLRTF command to override the color of text, lines and box graphics, as well as the background.
The color you specify for the foreground color will be used in place of the default color (normally black) for text items, lines, boxes etc. that do not have some other color explicitly defined for them.
So, if you want your spooled file to appear blue on pale yellow rather than black on white, you can use:
CVTSPLPDF ... COLOR(*BLUE *PALEYLW)
If you are including color in your application using a color overlay, CoolSpools can also convert the contents of the color overlay when outputting to PDF format.
However, there are some limitations:
However, before changing your application to use an overlay, consider whether it would be simpler (and more effective) to include one or more images in your PDF when you create it. See this FAQ answer for further details.
When you create a PDF file from your spooled file using CVTSPLPDF, you can use the INCLFILE (Include File) parameter to specify a number (1-32) of image files (either JPEGs or GIFs) that can be included in the file. These can be either mono or color.
This can be used just to include a company logo, a watermark or some other small graphic, or it can be used to present the entire report or document on a background form.
Using an exit program, you can include a far larger number of images (many thousands).
See this FAQ answer for further details.