Prev |  | Next

## 6.5. 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

    @Test
    public void verifyNewLogoOnEveryPage() throws Exception {
      String filename = "documentUnderTest.pdf";
      String newLogoImage = "images/newLogo.png";

      AssertThat.document(filename)
                .containsImage(newLogoImage)
      ;
    }

Prev | Up | Next
6.4. Authorized Signature of the new CEO | Home | 6.6. Do PDF Documents comply with Company Rules?