Boolean logic and conditions in preflight checks

In pdfToolbox, preflight checks are built from individual conditions. Combining these conditions is what makes pdfToolbox such a flexible tool. This article shows how conditions work and how they can be combined with Boolean conditions. The next article shows how this can be made even more flexible in pdfToolbox 10. If you have a good working knowledge of how checks work in pdfToolbox 9 and before, feel free to skip to this next article straight away.

Using a logical AND

This preflight check contains two conditions: one to select objects that are text objects, and a second to select objects using a specific spot color. Because the "Fire if any condition is met" checkbox is off, those two conditions are combined using a logical AND. In other words, this check will only fire if objects are found that are text AND use that particular spot color.

Using a logical OR

This preflight check contains two conditions: one to select objects that are text objects, and a second to select objects that are vector objects. Because the "Fire if any condition is met" checkbox is on, those two conditions are combined with a logical OR. In other words, this check will fire if objects are found that are text OR vector.

Combining AND and OR in one check

In pdfToolbox 9 and before, it was not possible to make more complex checks, checks would always use logical AND or logical OR. The next article explains how this changes in pdfToolbox 10 and how you can make more powerful checks.

0 Comments

Send Your Comment

E-Mail me when someone replies to this comment