10.2.  New Logo on each Page

Initial Situation

Two companies merge.

Problem

Some documents need a new logo. This should be visible on each page.

Solution Approach

The new logo exists as an image file. PDFUnit uses this file for tests.

Solution

<!--
  This sample shows how to verify that a logo is visible on each page.
-->
<testcase name="verifyNewLogoOnEveryPage">
  <assertThat testDocument="images/imagesWithSameImagesOnOnePage.pdf">
    <containsImage file="images/exported-image_ant-logo-PNG.png" 
                   on="EVERY_PAGE"
    />
  </assertThat>
</testcase>