Preflight for page layout

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

The preflight test for page layout includes following tests:

Page layout

Description

Code

If there are no empty frames on a page

This test will fail if a page contains any empty frames.

64

If all layers are displayed

This test will fail if some layers are invisible.

256

If there are no elements on different layers which do overlap.

This test will fail if element on different layers overlap, eg. something is covering an ad.

1024

If there are no elements on same layer which do overlap.

 

This test will fail if element on the same layer overlap, eg. image is covering something, or there are boxed elements.

 

65536

 

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 = 64+256+1024+65536

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

Strict test (cannot proceed with errors)

dim test = 64+256+1024+65536

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

Silent test (custom handler for errors)

dim test = 64+256+1024+65536

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