Preflight for colors

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 18:44

The preflight test for color status includes two checks:

Check if there are color elements on a b/w page. In such case, the below message is displayed, and the offending elements are selected. These can be color images, color backgrounds, borders or rules, or text in color. The PageTest code is 16384.

pagetest6

The same code tests if elements on page (not the black ones) are of the right spot color, if defined for that page/half-page. For example, if you defined the Red spot color for the current page, but there are some elements with Crimson spot color, the preflight will display the above message.

Please note that GN4 allows process colors on the spot color pages, thus process colors are not listed as invalid colors.

Check if images on page contains spot colors that are not defined as colors for the current title. This check is useful only if the preference 'Ignore spot colors in EPS images' is set. The PageTest code is 32768.

To perform such a test from scripting, assuming the workstate id for articles is 123, and workstate id for images is 456, the script should look like:

Relaxed test (can proceed with errors)

dim test = 16384+32768

Page.PageTest(2, test, 123, 456, False)

Strict test (cannot proceed with errors)

dim test = 16384+32768

Page.PageTest(1, test, 123, 456, False)

Silent test (custom handler for errors)

dim test = 16384+32768

if Page.PageTest(0, test, 123, 456, False)=0 then

  'here put the commands if there are no errors

else

  'here put the actions if there are errors

end if