10.2.  New Logo on each Page

Initial Situation

Two companies merge.


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.


  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"